- add themes.css

- add  DatasetService.ts and InternalIdHandler
This commit is contained in:
Arno Kaimbacher 2021-09-21 16:13:58 +02:00
parent 427b7b9c91
commit 92d0e94582
11 changed files with 327 additions and 39 deletions

View file

@ -1,5 +1,7 @@
import { GeomonPlatform } from "./platform";
const INTERNAL_ID_SEPERATOR = '_';
export class Dataset {
public id: string;
public label: string;
@ -16,6 +18,17 @@ export class Dataset {
public parameters: any;
}
export interface IDataset extends Parameter {
url: string;
uom: string;
internalId: string;
firstValue: FirstLastValue;
lastValue: FirstLastValue;
referenceValues: ReferenceValue[];
parameters: ParameterConstellation;
renderingHints: RenderingHints;
}
export class GeomonDataset {
public internalId: string;
@ -26,6 +39,9 @@ export class GeomonDataset {
) {
// this.internalId = new InternalIdHandler().createInternalId(url, id);
}
// public get internalId(): string {
// return this.url + INTERNAL_ID_SEPERATOR + this.id;
// }
}
export class GeomonTimeseries extends GeomonDataset {
@ -43,7 +59,7 @@ export class GeomonTimeseries extends GeomonDataset {
public parameters: ParameterConstellation,
) {
super(id, url, label);
}
}
}
export class ParameterConstellation {