protected override void OnScheduledUpdate() { base.OnScheduledUpdate(); ResultCategories.Add(new FilterCategory("Skins", GameItemCategory.Skin.ToString())); ResultCategories.Add(new FilterCategory("Helmets", GameItemCategory.Helmet.ToString())); Terminate(true); }
private void OnSuccesCallback(GetSellOfferOrderByListRequest.Response result, GetSellOfferOrderByListRequest.RequestParams request) { foreach (var item in result.items) { ResultCategories.Add(new FilterCategory(GetFilterTitle(item), item)); } Terminate(true); }
private void OnSuccesCallback(GetSellOfferOrderByListRequest.Response result, GetSellOfferOrderByListRequest.RequestParams request) { for (int i = 0; i < result.items.Length; i++) { var target = result.items[i]; ResultCategories.Add(new FilterCategory(GetFilterTitle(target), target)); } Terminate(true); }
protected override void OnScheduledUpdate() { base.OnScheduledUpdate(); ResultCategories.Add(new FilterCategory(string.Empty, "title")); ResultCategories.Add(new FilterCategory(string.Empty, "price")); ResultCategories.Add(new FilterCategory(string.Empty, "fee")); ResultCategories.Add(new FilterCategory(string.Empty, "status")); ResultCategories.Add(new FilterCategory(string.Empty, "created")); Terminate(true); }
private void OnSuccesCallback(GetGameCategoriesRequest.Response responce, GetGameCategoriesRequest.RequestParams request) { var categories = responce.Categories; for (var i = 0; i < categories.Count; i++) { var currentCategory = categories[i]; ResultCategories.Add(new FilterCategory(currentCategory.title, currentCategory.value)); } Terminate(true); }
private void OnSuccesCallback(GetSellOfferStatusesRequest.Response result, GetSellOfferStatusesRequest.RequestParams request) { var statuses = new List <string>(result.statuses); foreach (var item in OrderStatusUtil.GetStatusesInClient()) { if (!statuses.Contains(item.SearchValue)) { LogWarning(string.Format("{0} with search value {1} not " + "exist in server", item.Title, item.SearchValue)); } else { ResultCategories.Add(item); statuses.Remove(item.SearchValue); } } foreach (var item in statuses) { LogWarning(item + " status not implement in client"); } Terminate(true); }