initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface Month {
|
||||
month: string;
|
||||
delta: string;
|
||||
down: boolean;
|
||||
kWatts: string;
|
||||
cost: string;
|
||||
}
|
||||
|
||||
export interface Electricity {
|
||||
title: string;
|
||||
active?: boolean;
|
||||
months: Month[];
|
||||
}
|
||||
|
||||
export interface ElectricityChart {
|
||||
label: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export abstract class ElectricityData {
|
||||
abstract getListData(): Observable<Electricity[]>;
|
||||
abstract getChartData(): Observable<ElectricityChart[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user