using System.Runtime.CompilerServices;
using System.Text;

namespace BLWLogProduce.Models
{
    public class WaiBuJianKong
    {
        public static string WaiBuJianKongSourceFileName = "Para_copy.yaml";
        public static string WaiBuJianKongTargetFileName = "C:\\Program Files\\windows_exporter\\textfile_inputs\\Para.prom";
        public static string Data = "";

        static WaiBuJianKong()
        {
            string getdata = File.ReadAllText(WaiBuJianKongSourceFileName, Encoding.UTF8);
            Data = getdata;
        }
        public static grafana_data data = new grafana_data();

        public static string UDPPackage_TotalRecvPackage = "UDPPackage_TotalRecvPackage";
        public static string UDPPackage_TotalSendPackage = "UDPPackage_TotalSendPackage";
        public static string RCU_Online = "RCUOnLine";
        public static string TakeCardIn = "TakeCardIn";
        public static string UDPPackage_Heart = "UDPPackage_Heart";
        public static string UDPPackage_SearchHost = "UDPPackage_SearchHost";
        public static string UDPPackage_Intercept = "UDPPackage_Intercept";
        public static string 在线用户 = "在线用户";
        public static string UDPPackage_能耗 = "UDPPackage_能耗";
        public static string UDPPackage_StatusPass = "UDPPackage_StatusPass";


        public static string UDPPackage_TCL电视Discovery = "UDPPackage_TCL电视Discovery";
        public static string UDPPackage_TCL电视Control = "UDPPackage_TCL电视Control";

        public static string UDPPackage_小度音箱Discovery = "UDPPackage_小度音箱Discovery";
        public static string UDPPackage_小度音箱Control = "UDPPackage_小度音箱Control";

        public static string UDPPackage_TianMaoQueryAll = "UDPPackage_TianMaoQueryAll";
        public static string UDPPackage_TianMaoCONTROL = "UDPPackage_TianMaoCONTROL";

        public static string TotalErrorPackageReceiveCount = "TotalErrorPackageReceiveCount";
    }
    public class grafana_data
    {
        public string? WireShark_UDPCapCount { get; set; } = "0";
        public string? UDP_Upload { get; set; } = "0";
        public string? UDP_Sent { get; set; } = "0";
        public string? RCU_Online { get; set; } = "0";
        public string? RCU_TakeCard { get; set; } = "0";
        public string? RCU_Heart { get; set; } = "0";
        public string? RCU_SearchHost { get; set; } = "0";
        public string? Intercept { get; set; } = "0";
        public string? WebUser { get; set; } = "0";
        public string? Energy { get; set; } = "0";
        public string? RCU_OE { get; set; } = "0";
        public string? TCL_Ctr_D { get; set; } = "0";
        public string? TCL_Ctr_C { get; set; } = "0";
        public string? TM_Ctr_D { get; set; } = "0";
        public string? TM_Ctr_C { get; set; } = "0";
        public string? XD_Ctr_D { get; set; } = "0";
        public string? XD_Ctr_C { get; set; } = "0";
        public string? Hivi_Ctr { get; set; } = "0";
        public int? Process_Error { get; set; } = 0;
        public int? Process_TH1 { get; set; } = 0;
        public int? Process_TH2 { get; set; } = 0;
        public int? Process_TH3 { get; set; } = 0;
        public int? Process_TH4 { get; set; } = 0;
        public int? Process_TH5 { get; set; } = 0;

        public string? TotalErrorPackageReceiveCount { get; set; } = "0";



        public long GetRoomAirList = 0;
        public long SetRCUAir = 0;
        public long GetRoomSceneList = 0;
        public long SetRCUScene = 0;
        public long GetRoomLightList = 0;
        public long SetRCULight = 0;
        public long GetRoomCurtainList = 0;
        public long SetRCUCurtain = 0;
        public long GetRoomServiceList = 0;
        public long SetRCUService = 0;
        public long GetOperationLog = 0;
        public long GetRoomMusicList = 0;
        public long SetRCUMusic = 0;
        public long GetRCUStatus = 0;
        public long GetAirDetectList = 0;
        public long GetHostFaultList = 0;
        public long GetRoomTypeAndModalsList = 0;
        public long GetRCUInfoForPDU = 0;
        public long GetSessionKey = 0;
        public long GetPhoneNumber = 0;
        public long GetHotelInfoForWX = 0;
    }
}
