@helium/http
Version:
HTTP library for interacting with the Helium blockchain API
33 lines • 917 B
TypeScript
import Hotspots from '../resources/Hotspots';
import Client from '../Client';
import DataModel from './DataModel';
export interface HTTPCityObject {
short_state?: string;
short_country?: string;
short_city?: string;
long_state?: string;
long_country?: string;
long_city?: string;
hotspot_count?: number;
offline_count?: number;
online_count?: number;
city_id: string;
}
export type CityData = Omit<City, 'client'>;
export default class City extends DataModel {
private client;
shortState?: string;
shortCountry?: string;
shortCity?: string;
longState?: string;
longCountry?: string;
longCity?: string;
hotspotCount?: number;
onlineCount?: number;
offlineCount?: number;
cityId: string;
constructor(client: Client, data: HTTPCityObject);
get hotspots(): Hotspots;
get data(): CityData;
}
//# sourceMappingURL=City.d.ts.map