예제 #1
0
 private async void OnMessageSeen(SeenNotification notification)
 {
     var changed = await messageRepository.UpdateMessageStatusAsync(notification.MessageToken, MessageStatus.Seen);
     await messagingService.MessageSeenStatusAcknowledge(new MessageSeenStatusAcknowledgeRequest { Messages = new List<Guid> { notification.EventId }});
     if (changed)
     {
         MessageStatusChanged(this, new MessageStatusEventArgs { MessageToken = notification.MessageToken, Status = MessageStatus.Seen });
     }
 }
예제 #2
0
	    private static async void MessagingServiceOnSeenNotification(SeenNotification notification)
        {
            Out.WriteLine("   opponent saw your message");
            await messagingService.MessageSeenStatusAcknowledge(
                new MessageSeenStatusAcknowledgeRequest { Messages = new List<Guid> { notification.EventId } });
	    }