Added some more interfaces
This commit is contained in:
		
							
								
								
									
										6
									
								
								src/app/models/drawing.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/app/models/drawing.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					import {LatLng} from "./latlng";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface Drawing {
 | 
				
			||||||
 | 
					    color: string;
 | 
				
			||||||
 | 
					    path: LatLng[];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										4
									
								
								src/app/models/latlng.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								src/app/models/latlng.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					export interface LatLng {
 | 
				
			||||||
 | 
					    lat: number;
 | 
				
			||||||
 | 
					    lng: number;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -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[];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								src/app/models/measurement.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/app/models/measurement.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					import {LatLng} from "./latlng";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface Measurement {
 | 
				
			||||||
 | 
					    start: LatLng;
 | 
				
			||||||
 | 
					    end: LatLng;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										6
									
								
								src/app/models/message.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/app/models/message.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					import {User} from "./user";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface Message {
 | 
				
			||||||
 | 
					    from: User;
 | 
				
			||||||
 | 
					    text: string;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										7
									
								
								src/app/models/user.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/app/models/user.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					import {LatLng} from "./latlng";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface User {
 | 
				
			||||||
 | 
					    name: string;
 | 
				
			||||||
 | 
					    icon: string;
 | 
				
			||||||
 | 
					    latLng: LatLng;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user