public SettingsPrivacyNeverViewModelBase(IProtoService protoService, ICacheService cacheService, IEventAggregator aggregator, UserPrivacySetting inputKey) : base(protoService, cacheService, aggregator) { _inputKey = inputKey; //UpdatePrivacyAsync(); }
/// <summary> /// Returns the current privacy settings /// </summary> public static Task <UserPrivacySettingRules> GetUserPrivacySettingRulesAsync( this Client client, UserPrivacySetting setting = default) { return(client.ExecuteAsync(new GetUserPrivacySettingRules { Setting = setting })); }
/// <summary> /// Changes user privacy settings /// </summary> public static Task <Ok> SetUserPrivacySettingRulesAsync( this Client client, UserPrivacySetting setting = default, UserPrivacySettingRules rules = default) { return(client.ExecuteAsync(new SetUserPrivacySettingRules { Setting = setting, Rules = rules })); }
public SettingsPrivacyViewModelBase(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, UserPrivacySetting inputKey) : base(protoService, cacheService, settingsService, aggregator) { _inputKey = inputKey; AlwaysCommand = new RelayCommand(AlwaysExecute); NeverCommand = new RelayCommand(NeverExecute); SendCommand = new RelayCommand(SendExecute); }
public SettingsPrivacyViewModelBase(IProtoService protoService, ICacheService cacheService, IEventAggregator aggregator, UserPrivacySetting inputKey) : base(protoService, cacheService, aggregator) { _inputKey = inputKey; AlwaysCommand = new RelayCommand(AlwaysExecute); NeverCommand = new RelayCommand(NeverExecute); SendCommand = new RelayCommand(SendExecute); UpdatePrivacyAsync(); Aggregator.Subscribe(this); }
public SettingsPrivacyAlwaysViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, UserPrivacySetting inputKey) : base(protoService, cacheService, settingsService, aggregator) { _inputKey = inputKey; }