WEBVTT

00:00.360 --> 00:02.480
How everyone in this video.

00:02.520 --> 00:07.600
Let's try the code for get notifications.

00:07.720 --> 00:08.160
Okay.

00:08.200 --> 00:10.000
Get user notification.

00:13.040 --> 00:16.400
Right here inside the firewall method.

00:16.440 --> 00:19.480
I will put the current user.

00:23.480 --> 00:33.560
And right here one literal little files with return this dot notification model file.

00:34.920 --> 00:35.440
Okay.

00:35.480 --> 00:38.160
And right here we should pass the.

00:43.680 --> 00:46.600
What here sender or receiver.

00:46.640 --> 00:51.040
Can you think well it clearly a receiver right.

00:53.520 --> 00:58.120
Now let's hit a little bit to understand why receivers right now.

00:58.160 --> 01:00.080
Okay I hope you clear.

01:00.800 --> 01:02.040
And, uh.

01:03.720 --> 01:04.240
Okay.

01:04.280 --> 01:08.600
That is, we need to do the visualization also.

01:08.640 --> 01:10.680
But right now, let's me test that.

01:11.200 --> 01:11.480
This.

01:11.480 --> 01:15.360
Ah, here, let me remove the current users.

01:23.920 --> 01:27.440
And make sure with authentication.

01:31.920 --> 01:32.440
Okay.

01:32.480 --> 01:34.960
Let's open the API and I will.

01:38.920 --> 01:40.520
Create new folders.

01:40.560 --> 01:46.320
I will call notification I will move that.

01:59.280 --> 01:59.480
Here.

01:59.520 --> 02:01.640
Okay I will close.

02:01.640 --> 02:01.640
.

02:05.080 --> 02:06.360
Added we request.

02:10.000 --> 02:11.680
And I will rename.

02:13.760 --> 02:14.200
So.

02:18.800 --> 02:21.120
That my presentation.

02:22.440 --> 02:22.960
Okay.

02:25.480 --> 02:29.840
And what we need to do I will sign it with the zone account okay.

02:34.160 --> 02:36.720
Come with us and good good here.

02:37.360 --> 02:45.800
But it is a authentication with bearer token over here.

02:49.520 --> 02:51.960
Who does whom?

02:52.840 --> 02:54.040
What are you going on?

02:55.240 --> 02:56.040
Let me go by.

03:00.400 --> 03:01.600
Notification.

03:02.560 --> 03:07.920
let me say, uh, cannot get right here.

03:07.920 --> 03:12.320
You should put the notifications in the controller.

03:16.560 --> 03:21.240
Let me say again we already got this information right.

03:21.960 --> 03:26.840
And of course we need to mobilize that and custom for this.

03:27.440 --> 03:27.960
Right.

03:30.160 --> 03:31.080
Let me go back.

03:32.040 --> 03:33.720
And right now let me verbalize.

03:36.320 --> 03:39.280
First one will be sender okay.

03:39.280 --> 03:42.960
The sender is a current user.

03:43.560 --> 03:46.800
So I can read on this.

03:47.080 --> 03:47.600
Sorry.

03:47.960 --> 03:50.600
The receiver is current users right.

03:51.840 --> 03:54.840
You don't need to, uh, move that.

03:55.680 --> 03:57.760
Uh, actually, let me think.

03:58.120 --> 03:59.680
We can move the sender and.

04:01.720 --> 04:02.880
No mercy.

04:03.160 --> 04:05.840
So okay.

04:05.840 --> 04:06.400
Let's say.

04:11.680 --> 04:12.040
Are you.

04:14.960 --> 04:21.800
Not going to say the sender will be the source and receiver will be the.

04:22.720 --> 04:23.120
Okay.

04:23.120 --> 04:26.560
We already logged in with that account over here, right?

04:27.880 --> 04:30.200
So, uh.

04:36.000 --> 04:37.440
It means right now.

04:39.720 --> 04:40.880
We should.

04:43.480 --> 04:44.600
Boost the sender.

04:44.880 --> 04:45.360
Okay.

04:46.000 --> 04:46.680
You should.

04:46.800 --> 04:48.720
You only need to populate the sender.

04:48.760 --> 04:49.320
Okay?

04:51.160 --> 04:54.080
We don't need the current information.

04:54.880 --> 04:55.360
Right?

05:04.680 --> 05:07.680
Say we already got the sender also, right.

05:08.600 --> 05:12.840
And we need to, uh, add it.

05:16.360 --> 05:19.920
We only need the name.

05:26.800 --> 05:29.640
Until we already have, uh, an avatar.

05:29.800 --> 05:32.400
Maybe if we have avatar.

05:36.520 --> 05:37.200
Let me say.

05:39.520 --> 05:39.960
Okay.

05:39.960 --> 05:47.320
We already got the name over here because the Thomas don't have any avatar.

05:47.360 --> 05:48.720
So it will not show.

05:49.160 --> 05:56.720
And let me create a little robot tool here and create a little.

05:56.840 --> 05:57.320
Right.

05:58.440 --> 06:00.560
This one notification.

06:02.050 --> 06:05.450
You guys right here are real class.

06:24.770 --> 06:27.770
And we need a sender information.

06:47.170 --> 06:47.690
Okay.

06:48.890 --> 06:51.370
And after that, we need here.

06:54.290 --> 07:00.610
Um, we can, uh, I will copy everything and move that directly over here.

07:01.770 --> 07:09.010
Let me remove the comma over here and reward it.

07:15.690 --> 07:16.210
Okay.

07:16.890 --> 07:19.410
And right here let me rename the string.

07:26.170 --> 07:26.890
Here we.

07:30.770 --> 07:31.410
See.

07:35.810 --> 07:36.490
That.

07:39.770 --> 07:40.290
Okay.

07:40.330 --> 07:44.530
There is an error here.

07:57.930 --> 08:00.370
And with this here we need to customize that.

08:00.810 --> 08:01.370
Right.

08:02.090 --> 08:03.090
Let me go.

08:03.090 --> 08:04.650
Out and.

08:26.290 --> 08:32.050
Replace with them and with the avatar URL we need to.

08:33.250 --> 08:36.810
We need to copy from user.

08:38.850 --> 08:39.770
User DTO.

08:39.810 --> 08:40.450
Over here.

08:42.570 --> 08:43.130
Right.

08:44.090 --> 08:45.690
Copy everything over here.

08:50.770 --> 08:53.890
And what is over here with its borders?

08:54.570 --> 09:00.730
And with this here we have, uh, object dot dot avatar.

09:00.770 --> 09:01.290
Okay.

09:08.530 --> 09:12.250
So here we are again.

09:22.570 --> 09:29.570
Let us objects send the avatar of the ID and let's set it.

09:30.330 --> 09:36.970
And much more right here we need to use Jan probably to.

09:55.650 --> 09:56.090
Say.

09:58.330 --> 09:58.770
Okay.

09:58.770 --> 10:01.730
We already got this data right.

10:02.450 --> 10:05.410
And now we need what we need.

10:05.730 --> 10:06.850
We need, uh.

10:08.250 --> 10:08.690
Okay.

10:10.730 --> 10:17.290
So right here, let me try to add another reaction to create one more, uh, data over here.

10:17.530 --> 10:19.530
You can see when I chain.

10:20.050 --> 10:20.530
So.

10:23.530 --> 10:30.210
Hopefully a lot over here I will set this up a message.

10:30.610 --> 10:37.970
And let me say again you will say we already got the new information right now I will not remove the

10:37.970 --> 10:44.290
previous one because the notification cannot be removed.

10:44.890 --> 10:45.410
Okay.

10:45.970 --> 10:49.370
But if you want to do that, feel free to do that.

10:49.410 --> 11:00.850
Okay, now it's very easy if you need, you just need to write a service to remove the notifications.

11:00.890 --> 11:01.370
Okay.

11:02.050 --> 11:03.170
With me?

11:03.890 --> 11:05.450
I will not do that.

11:06.450 --> 11:15.810
I will create two object to test for vegetation, and I will do the vegetation for the next video.

11:15.850 --> 11:16.290
Okay.

11:17.050 --> 11:25.530
And right now I want to aware about us using a notification service.

11:25.930 --> 11:28.170
We already have a create method okay.

11:28.410 --> 11:37.090
Please pause the video and maybe apply the create method for different service you want.

11:37.650 --> 11:38.130
Okay.

11:38.730 --> 11:39.410
With me?

11:39.450 --> 11:40.490
I will not do that.

11:40.530 --> 11:40.850
Okay.

11:40.890 --> 11:47.890
I only demonstrate for you the create method inside the reaction of the boss.

11:48.290 --> 11:53.050
Okay, maybe you can apply that in the frame or command or something like that.

11:53.450 --> 11:55.690
Okay I will not do that.

11:55.690 --> 11:55.970
Right.

11:56.010 --> 11:57.570
I will leave that job for you.

11:57.810 --> 11:59.850
But you got the idea, right?

12:01.330 --> 12:05.450
So that's for the video and I will see you in the next one.
