Foreign.
Everyone, welcome to the new section about the conversation and message.
In this section we will use the feature similar with the messengers over here.
Okay, so now in this section we will create two schemas for the application okay.
The first one will be the conversation schema and the second one will be the message schema.
So why we need to.
Do that instead of one message schema will be enough.
You may ask me like that right.
Well the reason is very simple.
Now if you take a look at the messenger over here.
Now let's see what's the scheme.
What am I saying and what is the conversation?
Well, all of this thing over here.
We will.
Conversation.
Okay.
Here.
Here will be a conversation.
Right.
So.
All right.
Here we can go to school with a cover session.
Okay.
Very simple.
Right.
And inside the conversation detail.
Okay.
This is the conversation detail.
Inside the conversation detail.
We will say this will have a message.
So what is the message here.
Here we will message.
Right.
So for that reason we need the tool that we need the conversation and message schema also.
So will the application similar with the messengers okay.
I hope you get the idea.
Now let's say you what we need to to do for the feature.
Upconversion.
Well, it's a conversation.
We need some API.
Let me step by step and show you.
Firstly, we need a conversation private to create the chart with one frame at a time.
Okay.
For example, right here you can see this is my frame for example like that.
When I click into that frame I want we will create the conversation.
Okay.
I want to create conversation.
And within that conversation we will allow send a message.
Okay.
So for that reason we will call this here with private.
And we will allow the user can create a group.
Okay.
The group right here we will allow add mutable frame inside within the group.
Okay.
So not about private and group.
I will show you how we can implement in detail later.
Don't worry about the implement stuff right now.
Okay.
And also we will have a API for get own conversations.
Okay.
We need API to get on the bus over here.
Right.
And of course we need the get conversation detail.
We need get conversation detail over here.
Okay.
And now we will allow we can update the conversation.
Okay.
For example we can change the name of the group chat group chat or something like that.
I think I will view this over here.
Okay.
Well, in the extra feature of the group.
Okay.
Now you can see the conversation over here can be a chat with only one frame and it can be the chat
with the group also.
Okay, we will ask the conversation.
No matter if we only chat with one frame or so many frame.
Okay, we will conduct the conversation.
Okay.
In the conversation we will allow for example like update the name of the group chat.
Okay.
And we also list the add member into the chat group okay.
So we need this feature to add the member into group chat.
And of course we need to remove the member to a chat group.
And we also the we also allow the user can leave a group chat right.
So we will build a conversation.
Okay.
And how about the message?
Let me show you what the message we can get on the message in the conversation.
Okay.
We will build the URL, something like that.
In this endpoint, we will get our message inside the conversation detail over here.
Right.
And we can allow the user can send a message to the conversation.
Okay.
And of course we will allow the user can edit the message or delete a message also.
And we allow the user can mark the message will be seen okay.
So all of that will be the conversation and message.
I hope you very clear right now about the API and the feature we will build.
So I will see you in the next one.