WEBVTT

00:00.400 --> 00:01.920
Hi everyone.

00:01.920 --> 00:06.320
Welcome to the new section of the social Media applications.

00:06.640 --> 00:16.600
In this session we will use now one more module which is the friends.

00:16.800 --> 00:17.320
Okay.

00:17.640 --> 00:20.000
So for that reason in this case.

00:22.360 --> 00:24.720
I will create one more feature.

00:34.080 --> 00:35.400
With my friends.

00:36.760 --> 00:37.440
Let us.

00:43.760 --> 00:45.400
Add to rest API.

00:45.600 --> 00:46.360
And yes.

00:48.880 --> 00:54.200
After we on behalf of right we need to create the schema for us.

00:54.880 --> 01:01.900
And of course we need to remove the some file for testing.

01:10.980 --> 01:11.540
Okay.

01:12.060 --> 01:17.940
And in here I think I will rename it the schema a little bit.

01:18.180 --> 01:21.460
I will name for friend request.

01:24.700 --> 01:28.820
And we need to copy everything from.

01:30.940 --> 01:31.980
Reaction.

01:32.860 --> 01:34.780
Let me copy everything over here.

01:35.380 --> 01:38.180
And one last chain.

01:40.300 --> 01:40.900
Friend.

01:43.060 --> 01:44.020
Request.

01:50.180 --> 01:50.700
Okay.

01:50.740 --> 01:51.820
And change the name.

01:53.100 --> 01:53.700
Friend.

01:53.740 --> 01:54.380
Request.

01:54.420 --> 01:55.100
Document.

01:57.780 --> 02:00.980
And write.

02:03.280 --> 02:04.760
Requests would be met.

02:06.520 --> 02:08.960
Okay, let me remove.

02:14.360 --> 02:14.920
Okay.

02:15.080 --> 02:16.840
What we will have in here.

02:17.360 --> 02:19.920
Firstly, we have a sender.

02:20.200 --> 02:20.720
Okay.

02:21.400 --> 02:22.520
We have a sender.

02:22.560 --> 02:25.640
We missed the first of all.

02:25.760 --> 02:28.480
If I login with account I.

02:29.240 --> 02:37.120
I want to send the request to my friend with the be okay.

02:37.160 --> 02:38.600
It means I need to.

02:39.720 --> 02:41.480
I will create a sender.

02:41.680 --> 02:45.320
You will be I right here.

02:45.360 --> 02:45.840
Okay.

02:46.320 --> 02:48.520
And of course, we have a receiver.

02:49.080 --> 02:50.320
Let me go over here.

02:54.520 --> 02:56.320
We will use our document also.

02:56.680 --> 02:57.120
Okay.

02:57.120 --> 02:59.160
This is the receiver.

02:59.680 --> 03:01.400
And we have a status.

03:01.400 --> 03:01.880
Right.

03:01.880 --> 03:01.900
Roy?

03:05.380 --> 03:09.100
Woods thought I will create the Phi.

03:12.340 --> 03:13.420
Phi Phi.

03:14.580 --> 03:15.300
Friend.

03:16.700 --> 03:18.380
Request status.

03:21.380 --> 03:22.180
Accept it.

03:24.460 --> 03:25.100
Accept.

03:27.060 --> 03:30.060
Retract and bending.

03:32.700 --> 03:33.100
Okay.

03:33.100 --> 03:34.980
We have some status like this.

03:35.380 --> 03:41.300
Let me go back and start over here and create a prop.

03:45.060 --> 03:45.620
Right.

03:50.660 --> 03:51.380
In here.

03:51.860 --> 03:56.460
We would define the Midi file really badly.

03:57.820 --> 03:58.300
Okay.

03:59.260 --> 04:09.040
When we send a request to make a Foreign we will have a default will be abandoned and we need to move

04:09.040 --> 04:10.720
to some random over here.

04:11.800 --> 04:15.560
Okay, I will create the box.

04:18.760 --> 04:25.160
Is blocked calls friend request status.

04:29.240 --> 04:32.160
Ready to check?

04:37.200 --> 04:37.840
Latest.

04:39.080 --> 04:40.480
Go to Adam over here.

04:47.560 --> 04:53.520
Okay, so that's for the friend request.

04:54.680 --> 04:55.440
And.

04:59.120 --> 05:01.640
We need to import that inside a module.

05:02.240 --> 05:04.260
Let Where are you from?

05:04.260 --> 05:04.700
Here.

05:36.260 --> 05:36.820
Okay.

05:37.460 --> 05:43.380
And after that, we need to modify a little bit of the user over here.

05:43.420 --> 05:44.220
Schema.

05:45.340 --> 05:45.780
Okay.

05:45.780 --> 05:50.020
Right here we need to know the user hub.

05:50.300 --> 05:51.860
Uh, what frame okay.

05:51.900 --> 06:02.380
For example, if I am a okay I login with account I, I want to know what is my friend okay.

06:02.420 --> 06:06.440
So for that reason we have some friend friend list.

06:06.840 --> 06:07.240
Okay.

06:07.280 --> 06:10.240
With the some right over here.

06:10.480 --> 06:10.960
Right.

06:11.680 --> 06:18.440
So for that reason, we have to create one more property called the friends.

06:19.640 --> 06:20.200
Okay?

06:20.800 --> 06:22.440
The friends right here.

06:22.440 --> 06:26.080
We need to, uh, reference us.

06:26.200 --> 06:27.840
Let me copy this right here.

06:30.880 --> 06:36.240
We need to reference into the user itself, okay?

06:36.280 --> 06:38.600
Into the user itself.

06:39.240 --> 06:44.960
And right here with the friend, we can put the user document.

06:47.080 --> 06:48.080
Right over here.

06:48.120 --> 06:48.600
Okay.

06:52.360 --> 06:57.480
So that's for the schema, uh, right now.

06:58.520 --> 07:01.960
And I think that will be enough.

07:02.440 --> 07:04.280
And I will see you in the next one.
