Exemplo n.º 1
0
 public SettingsPrivacyAndSecurityViewModel(IMTProtoService protoService, ICacheService cacheService, ITelegramEventAggregator aggregator, SettingsPrivacyStatusTimestampViewModel statusTimestamp, SettingsPrivacyPhoneCallViewModel phoneCall, SettingsPrivacyChatInviteViewModel chatInvite)
     : base(protoService, cacheService, aggregator)
 {
     _statusTimestampRules = statusTimestamp;
     _phoneCallRules       = phoneCall;
     _chatInviteRules      = chatInvite;
 }
        public SettingsPrivacyAndSecurityViewModel(IMTProtoService protoService, ICacheService cacheService, ITelegramEventAggregator aggregator, IContactsService contactsService, SettingsPrivacyStatusTimestampViewModel statusTimestamp, SettingsPrivacyPhoneCallViewModel phoneCall, SettingsPrivacyChatInviteViewModel chatInvite)
            : base(protoService, cacheService, aggregator)
        {
            _contactsService = contactsService;

            _statusTimestampRules = statusTimestamp;
            _phoneCallRules       = phoneCall;
            _chatInviteRules      = chatInvite;

            PasswordCommand      = new RelayCommand(PasswordExecute);
            ClearPaymentsCommand = new RelayCommand(ClearPaymentsExecute);
            AccountTTLCommand    = new RelayCommand(AccountTTLExecute);
            PeerToPeerCommand    = new RelayCommand(PeerToPeerExecute);
        }