85 lines
2.3 KiB
C#
85 lines
2.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
namespace FrontendWebApi.Models
|
|
{
|
|
public class HydroMeter
|
|
{
|
|
}
|
|
|
|
public class HydroMeterInput
|
|
{
|
|
public string tableType { get; set; } //day, week, month, year
|
|
public string building_tag { get; set; }
|
|
public List<string> floor_tag { get; set; }
|
|
public string startTime { get; set; }
|
|
public string endTime { get; set; }
|
|
public decimal? price { get; set; }
|
|
|
|
public HydroMeterInputSearchMode Mode { get; set; } = HydroMeterInputSearchMode.All;
|
|
|
|
}
|
|
|
|
|
|
public enum HydroMeterInputSearchMode: int {
|
|
All = 0,
|
|
Custom = 1,
|
|
}
|
|
|
|
public class HydroMeterOutput
|
|
{
|
|
public string building_name { get; set; }
|
|
public string building_tag { get; set; }
|
|
public string floor_tag { get; set; }
|
|
public string device_serial_tag { get; set; }
|
|
public string device_master { get; set; }
|
|
public string device_number { get; set; }
|
|
public string device_full_name { get; set; }
|
|
public string total { get; set; }
|
|
public string price { get; set; }
|
|
public string total_price { get; set; }
|
|
public List<HydroMeterRawDataOutput> rawData { get; set; }
|
|
}
|
|
|
|
public class HydroMeterRawDataOutput
|
|
{
|
|
public string timeStamp { get; set; }
|
|
public string device_number { get; set; }
|
|
public string avg_rawdata { get; set; }
|
|
}
|
|
|
|
public class HydroMeterRawDataEachTotalOutput
|
|
{
|
|
public string building_name { get; set; }
|
|
public string device_number { get; set; }
|
|
public string searchMT { get; set; }
|
|
public string searchM { get; set; }
|
|
public string lastM { get; set; }
|
|
public string lastMT { get; set; }
|
|
public string lastY { get; set; }
|
|
public string lastYT { get; set; }
|
|
}
|
|
|
|
public class HydroMeterPriceInput
|
|
{
|
|
public string type { get; set; }
|
|
}
|
|
|
|
public class HydroMeterCompareOutput
|
|
{
|
|
|
|
}
|
|
|
|
public class HydroMeterCompareExportInput
|
|
{
|
|
public List<HydroMeterCompareOutput> exportList { get; set; }
|
|
}
|
|
|
|
public class HydroBuildList
|
|
{
|
|
public string full_name { get; set; }
|
|
public string building_tag { get; set; }
|
|
}
|
|
}
|