summaryrefslogblamecommitdiff
path: root/src/Api/types.ts
blob: 5543f79d9b171b084aea9d1f2ee356addd784ad9 (plain) (tree)
1
2
3
4
5



                                      
                   














                                       
                         










                                                                     
import { LatLng } from "./interfaces";

export class Portal {
    fullLoad: boolean
    address: string
    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.address = ""
        this.fullLoad = false
    }
}

export class Link {
    constructor(public fraction: string, public coords: LatLng[]) { }
}

export class Field {
    constructor(public fraction: string, public coords: LatLng[]) { }
}