Ejemplo n.º 1
0
        public void OnChangeStore(ItemCatalog item, bool bIsLastStore)
        {
            if (SettingsData.Store.EnableStoreNotifications == false)
            {
                return;
            }

            RxApp.MainThreadScheduler.Schedule(_ => LstNotificaionCategories.Clear());

            DisposeSubscription();

            _subscription = _client.ExecutionProxy.ExecuteRequest <int, int, ResponseMessageData <StoreNotificationCategoryModel>,
                                                                   ResponseMessageData <StoreNotificationCategoryModel> >(item.Id, TransferDto.SameType, SharedConstants.Server.STORE_HUB,
                                                                                                                          SharedConstants.Server.GET_NOTIFICATIONS_BY_STORE_STORE_HUB_METHOD, TransferDto.SameType)
                            .Subscribe(OnResultNotificationOk, OnResultNotificationError);
        }