diff options
Diffstat (limited to 'src/Api/types.ts')
-rw-r--r-- | src/Api/types.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/Api/types.ts b/src/Api/types.ts new file mode 100644 index 0000000..7a26bc8 --- /dev/null +++ b/src/Api/types.ts @@ -0,0 +1,30 @@ +import { LatLng } from "./interfaces"; + +export class Portal { + fullLoad: boolean + constructor( + public name: string, + public photo: string, + public fraction: string, + public coords: LatLng, + public level: number, + public resonatorsCount: number, + public mission: boolean, + public power: number, + public timestamp: number, + public resonators: any[], + public mods: any[], + public owner: string + + ) { + this.fullLoad = false + } +} + +export class Link { + constructor(public fraction: string, public coords: LatLng[]) { } +} + +export class Field { + constructor(public fraction: string, public coords: LatLng[]) { } +}
\ No newline at end of file |