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;

    }

}