Exemplo n.º 1
0
 protected override void OnScheduledUpdate()
 {
     base.OnScheduledUpdate();
     ResultCategories.Add(new FilterCategory("Skins", GameItemCategory.Skin.ToString()));
     ResultCategories.Add(new FilterCategory("Helmets", GameItemCategory.Helmet.ToString()));
     Terminate(true);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        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);
        }