50 lines
1.7 KiB
C#
50 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using SolarPower.Models.PowerStation;
|
|
|
|
namespace SolarPower.Models
|
|
{
|
|
public class Overview
|
|
{
|
|
public double Today_kwh { get; set; } //今日總發電量
|
|
public double Total_kwh { get; set; } //累計總發電量
|
|
public double Today_irradiance { get; set; } //即時平均日照度
|
|
public double Avg_irradiance { get; set; } //平均日照度(30天)
|
|
public double Today_PR { get; set; } //即時平均 PR 值
|
|
public double Avg_PR { get; set; } //平均 PR 值(30天)
|
|
public double Today_kwhkwp { get; set; } //即時平均 kWh / kWp
|
|
public double Avg_kwhkwp { get; set; } //平均 kWh / kWp (30天)
|
|
public double Today_carbon { get; set; } //今日減碳量
|
|
public double Total_carbon { get; set; } //累積減碳量
|
|
}
|
|
|
|
public class MapOverview : Overview
|
|
{
|
|
public List<CapacityDataTable> CapacityDataTables { get; set; }
|
|
public List<PowerStation.PowerStation> PowerStations { get; set; }
|
|
public int TotalPowerStationCount { get; set; }
|
|
public double TotalCapacity { get; set; }
|
|
public string UpdatedAt { get; set; } //畫面資料更新時間
|
|
}
|
|
|
|
public class CapacityDataTable
|
|
{
|
|
public string CityName { get; set; } //城市名稱
|
|
public int SubPowerStationCount { get; set; } //電站數量
|
|
public double SubTotalCapacity { get; set; } //總裝置容量
|
|
}
|
|
|
|
public class UseStatusCityGetPowerStation
|
|
{
|
|
public List<int> Cityid { get; set; } //都市
|
|
public List<int> Status { get; set; } //狀態
|
|
}
|
|
|
|
public class StationIds
|
|
{
|
|
public List<int> Ids { get; set; }
|
|
}
|
|
}
|