public SettingsPrivacyAndSecurityViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, IContactsService contactsService, IPasscodeService passcodeService, SettingsPrivacyShowForwardedViewModel showForwarded, SettingsPrivacyShowPhoneViewModel showPhone, SettingsPrivacyShowPhotoViewModel showPhoto, SettingsPrivacyShowStatusViewModel statusTimestamp, SettingsPrivacyAllowCallsViewModel phoneCall, SettingsPrivacyAllowChatInvitesViewModel chatInvite) : base(protoService, cacheService, settingsService, aggregator) { _contactsService = contactsService; _passcodeService = passcodeService; _showForwardedRules = showForwarded; _showPhoneRules = showPhone; _showPhotoRules = showPhoto; _showStatusRules = statusTimestamp; _allowCallsRules = phoneCall; _allowChatInvitesRules = chatInvite; PasscodeCommand = new RelayCommand(PasscodeExecute); PasswordCommand = new RelayCommand(PasswordExecute); ClearDraftsCommand = new RelayCommand(ClearDraftsExecute); ClearContactsCommand = new RelayCommand(ClearContactsExecute); ClearPaymentsCommand = new RelayCommand(ClearPaymentsExecute); AccountTTLCommand = new RelayCommand(AccountTTLExecute); Children.Add(_showForwardedRules); Children.Add(_showPhotoRules); Children.Add(_showPhoneRules); Children.Add(_showStatusRules); Children.Add(_allowCallsRules); Children.Add(_allowChatInvitesRules); aggregator.Subscribe(this); }
public SettingsPrivacyAndSecurityViewModel(IProtoService protoService, ICacheService cacheService, IEventAggregator aggregator, IContactsService contactsService, SettingsPrivacyShowStatusViewModel statusTimestamp, SettingsPrivacyAllowCallsViewModel phoneCall, SettingsPrivacyAllowChatInvitesViewModel chatInvite) : base(protoService, cacheService, aggregator) { _contactsService = contactsService; _showStatusRules = statusTimestamp; _allowCallsRules = phoneCall; _allowChatInvitesRules = chatInvite; PasswordCommand = new RelayCommand(PasswordExecute); ClearPaymentsCommand = new RelayCommand(ClearPaymentsExecute); AccountTTLCommand = new RelayCommand(AccountTTLExecute); PeerToPeerCommand = new RelayCommand(PeerToPeerExecute); }