예제 #1
0
 public void MarkAsRead(Action onSuccess, Action <string> onFailure)
 {
     AndroidUtils.RunOnUiThread(() =>
     {
         chatRoomJavaObject.Call("markAsRead",
                                 new OperationVoidCallbackProxy(onSuccess, onFailure));
     });
 }
예제 #2
0
 public void SetTypingStatus(TypingStatus typingStatus, Action onSuccess, Action <string> onFailure)
 {
     AndroidUtils.RunOnUiThread(() =>
     {
         chatRoomJavaObject.Call("setTypingStatus",
                                 AndroidChatUtils.GetTypingStatusAJO(typingStatus),
                                 new OperationVoidCallbackProxy(onSuccess, onFailure));
     });
 }
예제 #3
0
 public void SendMessage(ChatMessageContent messageContent, Action onSuccess, Action <string> onFailure)
 {
     AndroidUtils.RunOnUiThread(() =>
     {
         chatRoomJavaObject.Call("sendMessage",
                                 AndroidChatUtils.CreateChatMessageContentAJO(messageContent.MessageText),
                                 new OperationVoidCallbackProxy(onSuccess, onFailure));
     });
 }
예제 #4
0
 public void GetMessages(ChatMessage offsetMessage, int limit,
                         Action <List <ChatMessage> > onSuccess,
                         Action <string> onFailure)
 {
     AndroidUtils.RunOnUiThread(() =>
     {
         chatRoomJavaObject.Call("getMessagesBeforeChatMessageByGuid",
                                 offsetMessage.Guid, limit,
                                 new OperationGenericCallbackProxy <List <ChatMessage> >(onSuccess, onFailure, AndroidChatUtils.ChatMessagesFromJavaObject));
     });
 }
예제 #5
0
 public void Unsubscribe(Action onSuccess, Action <string> onFailure)
 {
     AndroidUtils.RunOnUiThread(() =>
                                chatRoomJavaObject.Call("unsubscribe", new OperationVoidCallbackProxy(onSuccess, onFailure)));
 }