Exemple #1
0
 public ProfileViewModel(
     IAuthenticationService authenticationService,
     INativePushNotificationService nativePushNotificationService)
 {
     _authenticationService         = authenticationService;
     _nativePushNotificationService = nativePushNotificationService;
 }
        public MainViewModel(
            MenuViewModel menuViewModel,
            INativePushNotificationService nativePushNotificationService,
            IPushNotificationService pushNotificationService)
        {
            _menuViewModel = menuViewModel;
            _nativePushNotificationService = nativePushNotificationService;
            _pushNotificationService       = pushNotificationService;

            MessagingCenter.Subscribe <ViewModelBase, NotificationType>(this, MessengerKeys.NotificationRequest, async(v, t) => { await OnNotificationRequestAsync(t); });
        }
Exemple #3
0
 public MenuViewModel(IAuthenticationService authenticationService, INativePushNotificationService nativePushNotificationService)
 {
     _authenticationService         = authenticationService;
     _nativePushNotificationService = nativePushNotificationService;
     InitMenuItems();
 }