コード例 #1
0
 public ChatViewModel(
     IRocketChatRestApi rocketChatRest,
     IEventAggregator eventAggregator,
     IRocketChatRealtimeApi realtimeApi,
     INavigationService navigationService,
     IToastNotificationsService notificationService)
 {
     this.rocketChatRest      = rocketChatRest;
     this.eventAggregator     = eventAggregator;
     this.realtimeApi         = realtimeApi;
     this.navigationService   = navigationService;
     this.notificationService = notificationService;
     RegisterCommands();
     RegisterSubscriptions();
 }
コード例 #2
0
 public MainViewModel(
     IEventAggregator eventAggregator,
     IRocketChatRestApi rocketChat,
     INavigationService navigationService,
     IRocketChatRealtimeApi rocketChatRealtime,
     IToastNotificationsService toastService
     )
 {
     this.eventAggregator    = eventAggregator;
     this.rocketChat         = rocketChat;
     this.navigationService  = navigationService;
     this.rocketChatRealtime = rocketChatRealtime;
     this.toastService       = toastService;
     RegisterCommands();
     ButtonsEnabled = true;
     IsPopupOpened  = false;
 }