import Accessor from "@arcgis/core/core/Accessor.js";
import { property } from "@arcgis/core/core/accessorSupport/decorators.js";
import { IForecast } from "./forecast";

import { ILocationResponse } from "./location-response";
import { ICurrent } from "./weather";


export interface IWeatherResponse {
    location: ILocationResponse;
    current: ICurrent;
    forecast: IForecast;
}

export default class WeatherResponse extends Accessor  implements IWeatherResponse {
    @property()
    location: ILocationResponse;

    @property()
    current: ICurrent;

    @property()
    forecast: IForecast;

    constructor(weatherResponse: IWeatherResponse) {
        super()
        this.location = weatherResponse.location;
        this.current = weatherResponse.current;
        this.forecast = weatherResponse.forecast;
    }

}



