Ejemplo n.º 1
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);
        }
 protected override void OnScheduledUpdate()
 {
     base.OnScheduledUpdate();
     ResultCategories.AddRange(OrderStatusUtil.GetStatusesInClient().ToArray());
     Terminate(true);
 }