public void GetListTest() { var mth = new GetList() { Size = 2 }; var datas = ApiClient.Execute(mth).Result; }
private async void LoadDatas() { this.IsBusy = true; var mth = new GetList() { From = this.from, Size = this.size }; var datas = await ApiClient.Execute(mth); this.Datas.AddRange(datas); this.IsBusy = false; }
private GetList.ListFilteredInMsg CreateInMsgFiltered(GetList.EntityTypeFiltered type, bool activeOnly, int[] locationIds, GetList.CustomAttributeMsg[] msgCustomAttributes) { GetList.ListFilteredInMsg inMsg = new GetList.ListFilteredInMsg(); inMsg.ItemType = type; inMsg.ActiveOnly = activeOnly; inMsg.CampusIds = locationIds; if (msgCustomAttributes != null) inMsg.CustomAttributes = msgCustomAttributes; return inMsg; }