Overview

Summary

ContactDonateImprint


2. CHAT MODULE (UI prompt)



Module Entities (10)

EntityAliasModuleGlobal Schema
(1) AbuseReportAbuseReportChatMessageModuleWhatsApp
(2) AiInteractionAiInteractionChatModuleWhatsApp
(3) BroadcastChannelBroadcastChannelChatModuleWhatsApp
(4) ChannelFollowerChannelFollowerUserAccountModuleWhatsApp
(5) ChatChatChatModuleWhatsApp
(6) ChatMessageChatMessageChatMessageModuleWhatsApp
(7) ChatParticipantChatParticipantChatModuleWhatsApp
(8) CommunityChatCommunityChatCommunitySpaceModuleWhatsApp
(9) UserAccountUserAccountUserAccountModuleWhatsApp
(10) VoiceCallVoiceCallVoiceCallModuleWhatsApp

Module Interfaces (28)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /aiinteractionfindAllAiInteraction()ChatModuleGETAiInteraction
(2) /chat/{id}deleteChatById(id)ChatModuleDELETEChat
(3) /broadcastchannel/{id}updateBroadcastChannelById(broadcastchannel)ChatModulePUTBroadcastChannel
(4) /chatfindAllChat()ChatModuleGETChat
(5) /broadcastchannel/owneruseraccount/{id}findAllBroadcastChannelOfOwnerUserAccount(id)ChatModuleGETUserAccount BroadcastChannel
(6) /chatparticipant/{id}updateChatParticipantById(chatparticipant)ChatModulePUTChatParticipant
(7) /chat/{id}updateChatById(chat)ChatModulePUTChat
(8) /broadcastchannelinsertBroadcastChannel(broadcastchannel)ChatModulePOSTBroadcastChannel
(9) /aiinteraction/chatmessage/{id}findAllAiInteractionOfChatMessage(id)ChatModuleGETChatMessage AiInteraction
(10) /broadcastchannel/chat/{id}findAllBroadcastChannelOfChat(id)ChatModuleGETChat BroadcastChannel
(11) /aiinteraction/useraccount/{id}findAllAiInteractionOfUserAccount(id)ChatModuleGETUserAccount AiInteraction
(12) /broadcastchannel/{id}deleteBroadcastChannelById(id)ChatModuleDELETEBroadcastChannel
(13) /chatparticipant/{id}findChatParticipantById(id)ChatModuleGETChatParticipant
(14) /chatparticipantfindAllChatParticipant()ChatModuleGETChatParticipant
(15) /aiinteractioninsertAiInteraction(aiinteraction)ChatModulePOSTAiInteraction
(16) /chatparticipantinsertChatParticipant(chatparticipant)ChatModulePOSTChatParticipant
(17) /broadcastchannel/{id}findBroadcastChannelById(id)ChatModuleGETBroadcastChannel
(18) /aiinteraction/{id}updateAiInteractionById(aiinteraction)ChatModulePUTAiInteraction
(19) /chatparticipant/useraccount/{id}findAllChatParticipantOfUserAccount(id)ChatModuleGETUserAccount ChatParticipant
(20) /chat/createdbyuseraccount/{id}findAllChatOfCreatedByUserAccount(id)ChatModuleGETUserAccount Chat
(21) /aiinteraction/{id}findAiInteractionById(id)ChatModuleGETAiInteraction
(22) /aiinteraction/chat/{id}findAllAiInteractionOfChat(id)ChatModuleGETChat AiInteraction
(23) /aiinteraction/{id}deleteAiInteractionById(id)ChatModuleDELETEAiInteraction
(24) /chat/{id}findChatById(id)ChatModuleGETChat
(25) /broadcastchannelfindAllBroadcastChannel()ChatModuleGETBroadcastChannel
(26) /chatinsertChat(chat)ChatModulePOSTChat
(27) /chatparticipant/{id}deleteChatParticipantById(id)ChatModuleDELETEChatParticipant
(28) /chatparticipant/chat/{id}findAllChatParticipantOfChat(id)ChatModuleGETChat ChatParticipant






2.1 AI INTERACTION


AiInteractionChatModuleWhatsApp

Properties (7)

PropertyTypeEntityReferenceModule
(1) ChatLONGAiInteractionChatChatModule
(2) ChatMessageLONGAiInteractionChatMessageChatMessageModule
(3) CreatedAtDATEAiInteraction
(4) InteractionTypeSTRINGAiInteraction
(5) PromptTextSTRINGAiInteraction
(6) ResponseSummarySTRINGAiInteraction
(7) UserAccountLONGAiInteractionUserAccountUserAccountModule





Example:

final AiInteraction aiinteraction = (AiInteraction) invokeModule(CHAT_MODULE + "/aiinteraction/" + id, AiInteraction.class);
if (aiinteraction != null) {
    final UserAccount useraccount1 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + aiinteraction.getUserAccount().getId(), UserAccount.class);
    if (useraccount1 != null) {
    }
    final Chat chat2 = (Chat) invokeModule(CHAT_MODULE + "/chat/" + aiinteraction.getChat().getId(), Chat.class);
    if (chat2 != null) {
        final UserAccount createdbyuseraccount3 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + chat2.getCreatedByUserAccount().getId(), UserAccount.class);
        if (createdbyuseraccount3 != null) {
        }
    }
    final ChatMessage chatmessage4 = (ChatMessage) invokeModule(CHAT_MESSAGE_MODULE + "/chatmessage/" + aiinteraction.getChatMessage().getId(), ChatMessage.class);
    if (chatmessage4 != null) {
        final Chat chat5 = (Chat) invokeModule(CHAT_MODULE + "/chat/" + chatmessage4.getChat().getId(), Chat.class);
        if (chat5 != null) {
            final UserAccount createdbyuseraccount6 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + chat5.getCreatedByUserAccount().getId(), UserAccount.class);
            if (createdbyuseraccount6 != null) {
            }
        }
        final UserAccount senderuseraccount7 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + chatmessage4.getSenderUserAccount().getId(), UserAccount.class);
        if (senderuseraccount7 != null) {
        }
    }
}
return aiinteraction;


2.2 BROADCAST CHANNEL


BroadcastChannelChatModuleWhatsApp

Properties (7)

PropertyTypeEntityReferenceModule
(1) ChatLONGBroadcastChannelChatChatModule
(2) CreatedAtDATEBroadcastChannel
(3) DescriptionSTRINGBroadcastChannel
(4) IsEndToEndEncryptedBOOLBroadcastChannel
(5) IsOfficialBOOLBroadcastChannel
(6) NameSTRINGBroadcastChannel
(7) OwnerUserAccountLONGBroadcastChannelUserAccountUserAccountModule





Example:

final BroadcastChannel broadcastchannel = (BroadcastChannel) invokeModule(CHAT_MODULE + "/broadcastchannel/" + id, BroadcastChannel.class);
if (broadcastchannel != null) {
    final UserAccount owneruseraccount1 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + broadcastchannel.getOwnerUserAccount().getId(), UserAccount.class);
    if (owneruseraccount1 != null) {
    }
    final Chat chat2 = (Chat) invokeModule(CHAT_MODULE + "/chat/" + broadcastchannel.getChat().getId(), Chat.class);
    if (chat2 != null) {
        final UserAccount createdbyuseraccount3 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + chat2.getCreatedByUserAccount().getId(), UserAccount.class);
        if (createdbyuseraccount3 != null) {
        }
    }
}
return broadcastchannel;


2.3 CHAT


ChatChatModuleWhatsApp

Properties (6)

PropertyTypeEntityReferenceModule
(1) CreatedAtDATEChat
(2) CreatedByUserAccountLONGChatUserAccountUserAccountModule
(3) IsChannelBOOLChat
(4) IsCommunityBOOLChat
(5) IsGroupBOOLChat
(6) TitleSTRINGChat





Example:

final Chat chat = (Chat) invokeModule(CHAT_MODULE + "/chat/" + id, Chat.class);
if (chat != null) {
    final UserAccount createdbyuseraccount1 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + chat.getCreatedByUserAccount().getId(), UserAccount.class);
    if (createdbyuseraccount1 != null) {
    }
}
return chat;


2.4 CHAT PARTICIPANT


ChatParticipantChatModuleWhatsApp

Properties (7)

PropertyTypeEntityReferenceModule
(1) ChatLONGChatParticipantChatChatModule
(2) CustomNotificationLevelSTRINGChatParticipant
(3) IsMutedBOOLChatParticipant
(4) IsPinnedBOOLChatParticipant
(5) JoinedAtDATEChatParticipant
(6) RoleSTRINGChatParticipant
(7) UserAccountLONGChatParticipantUserAccountUserAccountModule





Example:

final ChatParticipant chatparticipant = (ChatParticipant) invokeModule(CHAT_MODULE + "/chatparticipant/" + id, ChatParticipant.class);
if (chatparticipant != null) {
    final Chat chat1 = (Chat) invokeModule(CHAT_MODULE + "/chat/" + chatparticipant.getChat().getId(), Chat.class);
    if (chat1 != null) {
        final UserAccount createdbyuseraccount2 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + chat1.getCreatedByUserAccount().getId(), UserAccount.class);
        if (createdbyuseraccount2 != null) {
        }
    }
    final UserAccount useraccount3 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + chatparticipant.getUserAccount().getId(), UserAccount.class);
    if (useraccount3 != null) {
    }
}
return chatparticipant;


Overview

Summary

ContactDonateImprint