WEBVTT

00:00.480 --> 00:01.200
Foreign.

00:01.200 --> 00:08.720
Everyone, welcome to the new section about the conversation and message.

00:08.840 --> 00:15.840
In this section we will use the feature similar with the messengers over here.

00:16.760 --> 00:25.520
Okay, so now in this section we will create two schemas for the application okay.

00:26.040 --> 00:33.120
The first one will be the conversation schema and the second one will be the message schema.

00:33.440 --> 00:36.560
So why we need to.

00:38.680 --> 00:44.800
Do that instead of one message schema will be enough.

00:45.240 --> 00:47.040
You may ask me like that right.

00:47.280 --> 00:49.080
Well the reason is very simple.

00:50.400 --> 00:53.520
Now if you take a look at the messenger over here.

00:54.600 --> 00:58.920
Now let's see what's the scheme.

00:59.440 --> 01:02.600
What am I saying and what is the conversation?

01:03.320 --> 01:06.280
Well, all of this thing over here.

01:11.760 --> 01:12.800
We will.

01:12.840 --> 01:13.920
Conversation.

01:14.800 --> 01:15.360
Okay.

01:16.320 --> 01:16.800
Here.

01:17.320 --> 01:20.680
Here will be a conversation.

01:20.680 --> 01:21.240
Right.

01:24.480 --> 01:25.000
So.

01:25.760 --> 01:26.680
All right.

01:26.680 --> 01:31.520
Here we can go to school with a cover session.

01:32.480 --> 01:32.840
Okay.

01:32.880 --> 01:33.560
Very simple.

01:33.600 --> 01:34.000
Right.

01:34.720 --> 01:39.080
And inside the conversation detail.

01:39.880 --> 01:40.160
Okay.

01:40.200 --> 01:41.960
This is the conversation detail.

01:42.760 --> 01:44.320
Inside the conversation detail.

01:44.320 --> 01:47.240
We will say this will have a message.

01:47.440 --> 01:50.040
So what is the message here.

01:50.720 --> 01:54.360
Here we will message.

01:54.360 --> 01:55.000
Right.

01:55.040 --> 02:02.160
So for that reason we need the tool that we need the conversation and message schema also.

02:02.520 --> 02:08.320
So will the application similar with the messengers okay.

02:08.360 --> 02:10.560
I hope you get the idea.

02:11.160 --> 02:15.760
Now let's say you what we need to to do for the feature.

02:15.800 --> 02:17.000
Upconversion.

02:17.440 --> 02:19.320
Well, it's a conversation.

02:19.320 --> 02:20.960
We need some API.

02:21.360 --> 02:24.680
Let me step by step and show you.

02:25.520 --> 02:33.520
Firstly, we need a conversation private to create the chart with one frame at a time.

02:33.800 --> 02:34.120
Okay.

02:34.160 --> 02:39.800
For example, right here you can see this is my frame for example like that.

02:40.040 --> 02:47.120
When I click into that frame I want we will create the conversation.

02:48.560 --> 02:49.120
Okay.

02:49.160 --> 02:51.320
I want to create conversation.

02:51.440 --> 02:55.840
And within that conversation we will allow send a message.

02:56.200 --> 02:56.760
Okay.

02:56.800 --> 03:00.120
So for that reason we will call this here with private.

03:01.280 --> 03:05.640
And we will allow the user can create a group.

03:05.840 --> 03:06.360
Okay.

03:06.600 --> 03:15.680
The group right here we will allow add mutable frame inside within the group.

03:16.240 --> 03:16.720
Okay.

03:17.280 --> 03:19.490
So not about private and group.

03:20.650 --> 03:24.690
I will show you how we can implement in detail later.

03:25.210 --> 03:29.210
Don't worry about the implement stuff right now.

03:29.730 --> 03:30.170
Okay.

03:30.210 --> 03:35.330
And also we will have a API for get own conversations.

03:35.610 --> 03:36.170
Okay.

03:36.410 --> 03:39.290
We need API to get on the bus over here.

03:39.770 --> 03:40.290
Right.

03:41.330 --> 03:44.890
And of course we need the get conversation detail.

03:45.530 --> 03:47.890
We need get conversation detail over here.

03:51.370 --> 03:51.890
Okay.

03:52.850 --> 03:57.130
And now we will allow we can update the conversation.

03:59.210 --> 03:59.610
Okay.

03:59.650 --> 04:05.410
For example we can change the name of the group chat group chat or something like that.

04:06.530 --> 04:09.890
I think I will view this over here.

04:10.490 --> 04:10.970
Okay.

04:12.810 --> 04:18.570
Well, in the extra feature of the group.

04:19.410 --> 04:19.770
Okay.

04:19.810 --> 04:31.130
Now you can see the conversation over here can be a chat with only one frame and it can be the chat

04:31.170 --> 04:32.410
with the group also.

04:32.450 --> 04:36.050
Okay, we will ask the conversation.

04:36.090 --> 04:42.490
No matter if we only chat with one frame or so many frame.

04:42.770 --> 04:46.290
Okay, we will conduct the conversation.

04:46.850 --> 04:47.290
Okay.

04:47.330 --> 04:52.930
In the conversation we will allow for example like update the name of the group chat.

04:52.970 --> 04:53.450
Okay.

04:54.610 --> 05:02.170
And we also list the add member into the chat group okay.

05:03.690 --> 05:08.050
So we need this feature to add the member into group chat.

05:08.370 --> 05:12.970
And of course we need to remove the member to a chat group.

05:15.330 --> 05:20.890
And we also the we also allow the user can leave a group chat right.

05:22.130 --> 05:27.970
So we will build a conversation.

05:29.970 --> 05:30.490
Okay.

05:31.250 --> 05:32.570
And how about the message?

05:32.610 --> 05:40.250
Let me show you what the message we can get on the message in the conversation.

05:40.530 --> 05:40.890
Okay.

05:40.930 --> 05:43.410
We will build the URL, something like that.

05:44.490 --> 05:52.210
In this endpoint, we will get our message inside the conversation detail over here.

05:52.650 --> 05:53.170
Right.

05:55.250 --> 06:01.530
And we can allow the user can send a message to the conversation.

06:02.050 --> 06:02.570
Okay.

06:03.130 --> 06:09.610
And of course we will allow the user can edit the message or delete a message also.

06:10.450 --> 06:17.530
And we allow the user can mark the message will be seen okay.

06:18.410 --> 06:23.690
So all of that will be the conversation and message.

06:24.130 --> 06:32.650
I hope you very clear right now about the API and the feature we will build.

06:33.370 --> 06:35.210
So I will see you in the next one.
