UNPKG

tils-first-weather-widget

Version:

An example development EXB widget (Grant Caroll, spatial-innovation.co.nz)

30 lines (21 loc) 627 B
import Accessor from "@arcgis/core/core/Accessor.js"; import { property } from "@arcgis/core/core/accessorSupport/decorators.js"; export interface IWeatherCondition { text: string; icon: string; code: number; } export default class WeatherCondition extends Accessor implements IWeatherCondition { @property() text: string; @property() icon: string; @property() code: number; constructor(weatherCondition: IWeatherCondition) { super(); this.text= weatherCondition.text; this.icon = weatherCondition.icon; this.code = weatherCondition.code; } }