void onPublicRoomMessage(AndroidJavaObject chatRoom, AndroidJavaObject messageAJO) { var publicChatRoom = new PublicChatRoomAndroidImpl(chatRoom); var message = AndroidChatUtils.ChatMessageFromJavaObject(messageAJO); MainThreadExecutor.Queue(() => onPublicRoomMessageAction(publicChatRoom, message)); }
void onPublicRoomTypingStatus(AndroidJavaObject chatRoom, AndroidJavaObject userAJO, AndroidJavaObject typingStatusAJO) { var publicChatRoom = new PublicChatRoomAndroidImpl(chatRoom); var user = AndroidUtils.UserFromJavaObj(userAJO); var typingStatus = AndroidChatUtils.TypingStatusFromAJO(typingStatusAJO); MainThreadExecutor.Queue(() => onPublicRoomTypingStatusAction(publicChatRoom, user, typingStatus)); }