protected override void GetItemsFromServer() { var list = this.App.Service.GetTSLUnitPhones(); foreach (var item in list) { var vm = new TSL_ALertUnitPhoneViewModel(item); this.Items.Add(vm); UpdateUnitStatus(vm); } }
public DialupControllerBase(IModem modem, TSL_ALertUnitPhoneViewModel unit) { if (modem == null) { throw new ArgumentNullException(nameof(modem)); } if (unit == null) { throw new ArgumentNullException(nameof(unit)); } this.Modem = modem; this.Unit = unit; Status = eDialupStatus.None; this.Trys = 0; }
private void UpdateUnitStatus(TSL_ALertUnitPhoneViewModel vm) { var tslStatus = this.App.Service.GetLatestTslStatus(vm.PhoneNumberId, Entities.eTslStatusType.Prepare); if (tslStatus != null && tslStatus.DeletedDate == null) { vm.PrepareStatus = tslStatus.Status; } else { vm.PrepareStatus = Entities.eTslStatus.None; } tslStatus = this.App.Service.GetLatestTslStatus(vm.PhoneNumberId, Entities.eTslStatusType.Result); if (tslStatus != null && tslStatus.DeletedDate == null) { vm.ResultStatus = tslStatus.Status; } else { vm.ResultStatus = Entities.eTslStatus.None; } }
public PrepareController(IModem modem, TSL_ALertUnitPhoneViewModel unit) : base(modem, unit) { }