using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SolarPower.Models
{
    public class AnalysisStationInfo
    {
    }

    public class PowerStationDevice
    {
        public int PowerStationId { get; set; }
        public string CityName { get; set; }
        public string PowerStationName { get; set; }
        public string DeviceName { get; set; }
        public string DeviceType { get; set; }
        public string DeviceId { get; set; }
        public string SensorTypeId { get; set; }
        public string SensorTypeDetailId { get; set; }
    }

    public class PostAnalysisStation
    {
        public byte SearchType { get; set; }
        public string SelectedDate { get; set; }
        public List<DeviceIdInfo> DeviceIdInfos { get; set; }
    }

    public class DeviceIdInfo
    {
        public int PowerStationId { get; set; }
        public string DeviceType { get; set; }
        public string DeviceId { get; set; }
    }

    public class AnalysisDevice
    {
        public List<string> XAxis { get; set; } //時間
        public Dictionary<string, string> MultipleYaxes { get; set; } //Y軸名稱
        public List<DeviceHistoryInfo> Series { get; set; } //數組
    }

    public class DeviceHistoryInfo
    {
        public string Name { get; set; }
        public string YaxesKey { get; set; }
        public List<double> Values { get; set; }
    }
}
