Ejemplo n.º 1
0
        private async Task <Notification.MessageResponse> RecoveryReportMMS(string SiteName, int SiteId, int DeviceType, int DeviceIndex, string FaultName, DateTime faultTime)
        {
            if (SiteId != 161)
            {
                return(null);
            }
            string title  = $"{SiteName} 고장복구";
            string device = "";

            switch (DeviceType)
            {
            case 0: device = "PCS"; break;

            case 1: device = "BAT"; break;

            case 2: device = "PV"; break;
            }
            string body = $"복구 시각: { faultTime.ToString("yyyy-MM-dd HH:mm:ss")}\n복구 설비: {device + DeviceIndex} \n복구 내용: {FaultName}";

            return(await Notificator.SendingMMS(title, body, "01063671293", "01063671293", "01031819954", "01085752497"));
        }