コード例 #1
0
        public SettingsPrivacyNeverViewModelBase(IProtoService protoService, ICacheService cacheService, IEventAggregator aggregator, UserPrivacySetting inputKey)
            : base(protoService, cacheService, aggregator)
        {
            _inputKey = inputKey;

            //UpdatePrivacyAsync();
        }
コード例 #2
0
 /// <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
     }));
 }
コード例 #3
0
 /// <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
     }));
 }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 public SettingsPrivacyAlwaysViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, UserPrivacySetting inputKey)
     : base(protoService, cacheService, settingsService, aggregator)
 {
     _inputKey = inputKey;
 }