Added some more interfaces

This commit is contained in:
ztimson 2019-07-22 13:04:04 -04:00
parent 4c3c233f06
commit a0de11b453
7 changed files with 43 additions and 4 deletions

View File

@ -0,0 +1,6 @@
import {LatLng} from "./latlng";
export interface Drawing {
color: string;
path: LatLng[];
}

4
src/app/models/latlng.ts Normal file
View File

@ -0,0 +1,4 @@
export interface LatLng {
lat: number;
lng: number;
}

View File

@ -1,3 +1,12 @@
import {Marker} from "./marker";
import {Drawing} from "./drawing";
import {User} from "./user";
import {Message} from "./message";
export interface Map { export interface Map {
name: string drawings: Drawing[];
markers: Marker[];
messages: Message[];
name: string;
users: User[];
} }

View File

@ -1,6 +1,7 @@
export class Marker { import {LatLng} from "./latlng";
latitude: number;
longitude: number; export interface Marker {
latLng: LatLng;
name: string; name: string;
color: string; color: string;
notes: string; notes: string;

View File

@ -0,0 +1,6 @@
import {LatLng} from "./latlng";
export interface Measurement {
start: LatLng;
end: LatLng;
}

View File

@ -0,0 +1,6 @@
import {User} from "./user";
export interface Message {
from: User;
text: string;
}

7
src/app/models/user.ts Normal file
View File

@ -0,0 +1,7 @@
import {LatLng} from "./latlng";
export interface User {
name: string;
icon: string;
latLng: LatLng;
}