summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts')
-rw-r--r--sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts34
1 files changed, 20 insertions, 14 deletions
diff --git a/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts b/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts
index 79af65377..b9102e871 100644
--- a/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts
+++ b/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts
@@ -18,26 +18,32 @@
import { link } from "./link";
-export type site = {
+export type Site = {
id: string,
name: string,
- address?: string,
- heighAGLInMeters?: number, //AboveGroundLevel
- antennaHeightAGLInMeters?: number,
+ address: Address,
+ heightAmslInMeters?: number, //AboveGroundLevel
+ antennaHeightAmslInMeters?: number,
type?: string,
operator: string,
- geoLocation:{lon: number, lat: number},
+ location:{lon: number, lat: number},
devices: Device[],
links: link[]
}
-export type Device = {
- id: string,
- type: string,
- name: string,
- manufacture: string,
- owner: string,
- status?: string,
- port: number[],
- simulatorId?: string,
+export type Address={
+ streetAndNr: string,
+ city: string,
+ zipCode: string | null,
+ country: string
+}
+
+export class Device {
+ id: string;
+ type: string;
+ name: string;
+ manufacturer: string;
+ owner: string;
+ status?: string;
+ port: number[];
} \ No newline at end of file