WEBVTT

00:00.480 --> 00:01.800
Hi everyone.

00:02.000 --> 00:15.640
In this video we will create another survey for Mark asked three okay, we will set the is read property

00:15.960 --> 00:19.000
from phones to truth.

00:19.040 --> 00:23.080
Okay, let me remove the update and remove over here.

00:23.080 --> 00:24.160
We don't need that.

00:25.080 --> 00:30.200
And with the file one we also don't need that okay.

00:32.120 --> 00:33.800
Let me remove the file one also.

00:34.320 --> 00:36.880
And mark what we need to do in here.

00:37.440 --> 00:41.440
We need to go to notification I need to speak.

00:41.480 --> 00:42.000
Right.

00:43.560 --> 00:45.640
And the second one.

00:49.920 --> 00:54.240
Uh I think we only need the notification ID.

00:56.000 --> 00:59.440
And right now let me find the notification.

00:59.440 --> 00:59.530
Attention.

01:00.610 --> 01:04.330
Okay, so for that reason we actually need the file.

01:04.370 --> 01:05.970
File on our method.

01:06.170 --> 01:06.570
Okay.

01:06.610 --> 01:08.250
We will delegate that job.

01:11.290 --> 01:16.290
Actually right here we just need to call the ID because this is inside the notification service.

01:31.890 --> 01:32.890
I will do job.

01:44.290 --> 01:44.810
Okay.

01:45.090 --> 01:46.650
And return notification.

01:48.890 --> 01:53.130
So here we just need to call notification equal.

01:53.130 --> 01:58.170
Why not file one and boost the idea over here.

02:02.030 --> 02:05.070
After that, we just need to call the notification.

02:07.390 --> 02:12.270
Dot is retrograde to be true.

02:13.190 --> 02:15.790
Okay, that will be enough.

02:18.750 --> 02:20.430
Make sure you await us.

02:24.630 --> 02:26.750
And right here we need to real time also.

02:38.790 --> 02:39.670
That is right.

02:40.270 --> 02:43.710
So let's test that.

02:47.910 --> 02:49.150
Raja is ready.

02:49.790 --> 02:50.750
We will call.

02:52.870 --> 02:55.750
As read property ID.

02:58.600 --> 02:59.280
Okay.

03:00.600 --> 03:02.880
And right here I will select read.

03:10.600 --> 03:11.120
Over here.

03:18.280 --> 03:21.840
Plus the dash I will duplicate.

03:24.400 --> 03:29.680
Back as read and change method to batch.

03:31.720 --> 03:33.560
And we already signed in.

03:36.360 --> 03:36.920
Right.

03:39.120 --> 03:46.400
What we do know is I notification I will copy that and put that over here.

03:47.800 --> 03:51.440
Let's say okay not bad or sorry.

03:51.960 --> 03:55.880
We should select read over here and say.

03:55.880 --> 04:00.890
Send a message over here and let me get my notification again.

04:01.370 --> 04:05.130
Now you can see the property will be become true.

04:05.730 --> 04:06.210
Okay.

04:06.690 --> 04:12.090
And one more method will be Mark on will be read.

04:12.810 --> 04:14.170
So how to do that?

04:15.410 --> 04:19.410
Well, in order to do that, we just need to create one more method.

04:19.530 --> 04:21.610
Mark on read.

04:24.210 --> 04:24.730
Okay.

04:25.010 --> 04:27.730
And we should mark the current user.

04:31.090 --> 04:31.570
Right.

04:32.690 --> 04:34.130
And right here.

04:36.690 --> 04:37.810
We need to.

04:42.930 --> 04:45.730
Know why this dot.

04:48.970 --> 04:50.690
Model dot five.

04:57.310 --> 04:57.830
No.

04:58.830 --> 05:04.750
We can use the update money.

05:04.790 --> 05:05.190
Okay.

05:05.190 --> 05:10.430
We can add we can boost the filter right here.

05:10.750 --> 05:13.150
The receiver will recover the user ID.

05:17.950 --> 05:18.670
Okay.

05:19.870 --> 05:24.630
And the second parameter will be update field.

05:25.070 --> 05:26.910
We want to update the.

05:29.670 --> 05:30.430
Risk.

05:32.630 --> 05:33.270
Ratio.

05:34.470 --> 05:34.950
Right.

05:35.510 --> 05:40.590
And make sure a new table with new control.

05:41.950 --> 05:42.470
Okay.

05:43.790 --> 05:49.750
Let us actually add in insert update money.

05:49.750 --> 05:52.430
We don't have any new property okay.

05:53.200 --> 06:00.680
So right now, with all that money, we need to fight the notification based on the current users.

06:01.280 --> 06:04.880
And right here for sure we can put is moving forward.

06:04.920 --> 06:05.160
Okay.

06:05.200 --> 06:11.920
We will find beyond the current user and only the is read will be false.

06:11.960 --> 06:13.080
We will update us.

06:14.680 --> 06:20.680
So back to the controller and right here I will call read on.

06:23.840 --> 06:26.200
My ugly mug on.

06:33.280 --> 06:34.240
The current user.

06:53.050 --> 06:54.370
Let me duplicate.

06:57.570 --> 06:58.330
Hold on.

06:58.370 --> 06:59.010
Mars.

07:03.290 --> 07:04.610
And right here.

07:06.490 --> 07:08.850
We don't need any idea over here.

07:08.850 --> 07:13.010
We just need to read on like this.

07:20.250 --> 07:21.450
And we should log in.

07:21.490 --> 07:22.010
Okay.

07:22.570 --> 07:33.690
And before that, let me go to the notification and I will change from true to false for that box.

07:35.930 --> 07:39.250
Right here I will change to false.

07:44.730 --> 07:47.690
We have phones and phones over here.

07:47.730 --> 07:49.210
Let's test it.

07:49.210 --> 07:53.230
One or not let me Using the method will be a success.

07:53.510 --> 07:55.630
And if we check the database.

08:02.550 --> 08:04.550
Now you can see it already updated show.

08:04.550 --> 08:06.070
And here we will show also.

08:06.110 --> 08:07.110
So very good.

08:07.150 --> 08:12.030
Right between windscreen we already marked.

08:12.070 --> 08:13.910
Everything will be great.

08:15.990 --> 08:18.270
And oh sorry.

08:18.390 --> 08:21.390
Actually this is not a real time okay.

08:21.430 --> 08:26.910
Because this is only a fact in my room, right?

08:27.270 --> 08:34.950
It will only affect with in the current method the current estimate request.

08:34.950 --> 08:39.670
So we don't need to any real time for this thing okay.

08:40.150 --> 08:42.830
We just need to real time for create method.

08:45.230 --> 08:45.750
Right.

08:45.950 --> 08:49.550
So that's for the video I will see you in the next one.
