private void DispatchMute(bool mute, Action succeeded, Action <Exception> failed) { this.IsCommunicating = true; RequestQueue.EnqueueObservable(_source, new UpdateMuteRequest(_target, mute)) .Finally(() => this.IsCommunicating = false) .Subscribe(_ => { }, failed, succeeded); }
private void DispatchAction(RelationKind work, Action succeeded, Action <Exception> failed) { this.IsCommunicating = true; RequestQueue.EnqueueObservable(_source, new UpdateRelationRequest(_target, work)) .Finally(() => this.IsCommunicating = false) .Subscribe(_ => { }, failed, succeeded); }
private void DispatchRetweetSuppression(bool suppress, Action succeeded, Action <Exception> failed) { this.IsCommunicating = true; RequestQueue.EnqueueObservable(_source, new UpdateFriendshipsRequest(_target, null, suppress)) .Finally(() => this.IsCommunicating = false) .Subscribe(_ => { }, failed, succeeded); }