public LoginViewModel(IMvxNavigationService navigationService, ISendbirdConnectionService sendBird, IMvxMessenger messenger, IContext context) : base() { _navigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService)); _sendbird = sendBird; _messenger = messenger; _context = context; ShowChatListViewModelCommand = new MvxCommand(LoginConnect); RegisterConnectionStatusChangeNotificationListener(); }
public ChattingViewModel(IMvxNavigationService navigationService, ISendbirdConnectionService sendBird, IMvxMessenger messenger) : base() { _navigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService)); _sendBird = sendBird; _messenger = messenger; ChatMessages = new MvxObservableCollection <ChatMessageBase>(); RegisterTypingStatusNotificationListener(); RegisterChatMessagesUpdateNotificationListener(); }
public ChatListViewModel(IMvxNavigationService navigationService, ISendbirdConnectionService sendBird, IMvxMessenger messenger) : base() { _navigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService)); _sendBird = sendBird; _messenger = messenger; ChatList = new MvxObservableCollection <ChatListEntry>(); RegisterChatListUpdateNotificationListener(); RegisterIncomingMessageNotificationListener(); RegisterTypingStatusNotificationListener(); _sendBird.GetAPI().ListGroupChannels(); ChattingViewCommand = new MvxCommand <ChatListEntry>(LoadChattingView); }