Alarm.ExtentionMethods.UpdateAlarmWeekdays C# (CSharp) Метод

UpdateAlarmWeekdays() публичный статический Метод

public static UpdateAlarmWeekdays ( this client, Alarm alarm ) : void
client this
alarm Alarm
Результат void
        public static void UpdateAlarmWeekdays(this Client client, Alarm alarm)
        {
            IXPFile file = new IXPFile();
            file.NetworkFunction = "com.projectgame.clock.alarm.setalarmweekdays";
            file.PutInfo("alarm_id", "" + alarm.ID);
            file.PutInfo("mon", alarm.Mon ? "TRUE" : "FALSE");
            file.PutInfo("tue", alarm.Tue ? "TRUE" : "FALSE");
            file.PutInfo("wed", alarm.Wed ? "TRUE" : "FALSE");
            file.PutInfo("thu", alarm.Thu ? "TRUE" : "FALSE");
            file.PutInfo("fri", alarm.Fri ? "TRUE" : "FALSE");
            file.PutInfo("sat", alarm.Sat ? "TRUE" : "FALSE");
            file.PutInfo("sun", alarm.Sun ? "TRUE" : "FALSE");
            client.NoResponseRequest(file);
        }