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

namespace SolarPower.Models
{
    public class PowerStationInverter
    {
        public int PowerStationId { get; set; }
        public string CityName { get; set; }
        public string PowerStationName { get; set; }
        public string InverterName { get; set; }
        public string InverterId { get; set; }
    }

    public class PostAnalysisInverter
    {
        public byte SearchType { get; set; }
        public string SelectedDate { get; set; }
        public List<InverterIdInfo> InverterIdInfos { get; set; }
    }

    public class InverterIdInfo
    {
        public int PowerStationId { get; set; }
        public string InverterId { get; set; }
    }

    public class StationCodeWithInverterIds
    {
        public string Sensor { get; set; }
        public string SiteDB { get; set; }
        public string Code { get; set; }
        public List<string> InverterIds { get; set; }
    }

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

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

    public class StationIdWithInverterIds
    {
        public int PowerStationId { get; set; }
        public string SiteDBName { get; set; }
        public List<string> InverterIds { get; set; }
    }

    public class StationIdWithMeterIds
    {
        public int PowerStationId { get; set; }
        public List<string> MeterIds { get; set; }
    }
}
