public void MarkAsRead(Action onSuccess, Action <string> onFailure) { AndroidUtils.RunOnUiThread(() => { chatRoomJavaObject.Call("markAsRead", new OperationVoidCallbackProxy(onSuccess, onFailure)); }); }
public void SetTypingStatus(TypingStatus typingStatus, Action onSuccess, Action <string> onFailure) { AndroidUtils.RunOnUiThread(() => { chatRoomJavaObject.Call("setTypingStatus", AndroidChatUtils.GetTypingStatusAJO(typingStatus), new OperationVoidCallbackProxy(onSuccess, onFailure)); }); }
public void SendMessage(ChatMessageContent messageContent, Action onSuccess, Action <string> onFailure) { AndroidUtils.RunOnUiThread(() => { chatRoomJavaObject.Call("sendMessage", AndroidChatUtils.CreateChatMessageContentAJO(messageContent.MessageText), new OperationVoidCallbackProxy(onSuccess, onFailure)); }); }
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)); }); }
public void Unsubscribe(Action onSuccess, Action <string> onFailure) { AndroidUtils.RunOnUiThread(() => chatRoomJavaObject.Call("unsubscribe", new OperationVoidCallbackProxy(onSuccess, onFailure))); }