コード例 #1
0
        void onPublicRoomMessage(AndroidJavaObject chatRoom, AndroidJavaObject messageAJO)
        {
            var publicChatRoom = new PublicChatRoomAndroidImpl(chatRoom);
            var message        = AndroidChatUtils.ChatMessageFromJavaObject(messageAJO);

            MainThreadExecutor.Queue(() => onPublicRoomMessageAction(publicChatRoom, message));
        }
コード例 #2
0
        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));
        }