public static ChatEvent toEventPayload()

in sdk/communication/azure-communication-chat/src/main/java/com/azure/android/communication/chat/implementation/notifications/NotificationUtils.java [154:177]


    public static ChatEvent toEventPayload(ChatEventType chatEventType, String body) {
        if (ChatEventType.CHAT_MESSAGE_RECEIVED.equals(chatEventType)) {
            return getChatMessageReceived(body);
        } else if (ChatEventType.TYPING_INDICATOR_RECEIVED.equals(chatEventType)) {
            return getTypingIndicatorReceived(body);
        } else if (ChatEventType.READ_RECEIPT_RECEIVED.equals(chatEventType)) {
            return getReadReceiptReceived(body);
        } else if (ChatEventType.CHAT_MESSAGE_EDITED.equals(chatEventType)) {
            return getChatMessageEdited(body);
        } else if (ChatEventType.CHAT_MESSAGE_DELETED.equals(chatEventType)) {
            return getChatMessageDeleted(body);
        } else if (ChatEventType.CHAT_THREAD_CREATED.equals(chatEventType)) {
            return getChatThreadCreated(body);
        } else if (ChatEventType.CHAT_THREAD_PROPERTIES_UPDATED.equals(chatEventType)) {
            return getChatThreadPropertiesUpdated(body);
        } else if (ChatEventType.CHAT_THREAD_DELETED.equals(chatEventType)) {
            return getChatThreadDeleted(body);
        } else if (ChatEventType.PARTICIPANTS_ADDED.equals(chatEventType)) {
            return getParticipantsAdded(body);
        } else if (ChatEventType.PARTICIPANTS_REMOVED.equals(chatEventType)) {
            return getParticipantsRemoved(body);
        }
        return null;
    }