コード例 #1
0
		public ConversationViewModel (long recipientId)
		{
            messages = new ObservableCollection<MessageViewModel>();
			dataManager = App.DataManager;
		    messageRepository = App.MessageRepository;
		    App.MessagesManager.MessageArrived += OnMessageArrived;
		    App.MessagesManager.MessageStatusChanged += OnMessageStatusChanged; 
		    this.recipientId = recipientId;
		    IsTyping = isTyping;

		    uiThreadDispacher = ServiceContainer.Resolve<IUIThreadDispacher>();
		    var typingManager = ServiceContainer.Resolve<TypingService>();
            opponentTypingController = new OpponentTypingController(uiThreadDispacher, typingManager);
            currentUserTypingController = new CurrentUserTypingController(recipientId, typingManager, App.FriendsViewModel);
            opponentTypingController.Subscribe(recipientId, i => IsTyping = i);
		}
コード例 #2
0
        public ConversationViewModel(long recipientId)
        {
            messages          = new ObservableCollection <MessageViewModel>();
            dataManager       = App.DataManager;
            messageRepository = App.MessageRepository;
            App.MessagesManager.MessageArrived       += OnMessageArrived;
            App.MessagesManager.MessageStatusChanged += OnMessageStatusChanged;
            this.recipientId = recipientId;
            IsTyping         = isTyping;

            uiThreadDispacher = ServiceContainer.Resolve <IUIThreadDispacher>();
            var typingManager = ServiceContainer.Resolve <TypingService>();

            opponentTypingController    = new OpponentTypingController(uiThreadDispacher, typingManager);
            currentUserTypingController = new CurrentUserTypingController(recipientId, typingManager, App.FriendsViewModel);
            opponentTypingController.Subscribe(recipientId, i => IsTyping = i);
        }
コード例 #3
0
 public OpponentTypingController(IUIThreadDispacher threadDispacher, TypingService typingService)
 {
     this.threadDispacher = threadDispacher;
     this.typingService   = typingService;
 }
コード例 #4
0
 public OpponentTypingController(IUIThreadDispacher threadDispacher, TypingService typingService)
 {
     this.threadDispacher = threadDispacher;
     this.typingService = typingService;
 }