-
Notifications
You must be signed in to change notification settings - Fork 0
Chatting
EASYHZ edited this page May 1, 2023
·
13 revisions
-
Default Layout
Ai Chat rooms are fixed at the top, and users and chats are listed chronologically below them. -
When we first started
Only ai chat room exists. So, You can chat with AI.
Socket Communication and Database Usage.
- Send Chat
- Communicate with servers and store databases
- Extract AI answers
- It prevents you from sending continuous chats.
- AI has a delay in answering like a real friend.
- Answer notification.
- Using cloud messaging services
- ChatRoomActivity.kt
fun sendPostToFCM(destinationUid: String, myUid: String, pTitle: String?, pMessage: String?) { ... }
- Recommend a bulletin board of interest if it is determined that the conversation continues and the interests can be identified.
The conversation will be updated in AiChatAdapter. ( @/aifriend/recycler/AiChatAdapter.kt )
class AiChatAdapter : RecyclerView.Adapter<AiChatAdapter.ViewHolder>() { ... }-
Default Layout
Ai Chat rooms are fixed at the top, and users and chats are listed chronologically below them. -
When we first started
Only ai chat room exists. So, You can chat with AI.
Chat with real users. (this is done by requesting conversations with users you met on the bulletin board of interest)
- Send Chat
- Save Database
- Check and reply to the other person's chat.
- Answer notification
The conversation will be updated in ChatAdapter. ( @/aifriend/recycler/ChatAdapter.kt )
class ChatAdapter: RecyclerView.Adapter<ChatAdapter.ViewHolder>() { ... }