summaryrefslogblamecommitdiff
path: root/src/Api/types.ts
blob: 7a26bc8420f963a9a9edda7b3930da25800436cc (plain) (tree)





























                                                                     
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[]) { }
}