How everyone in this video.
Let's try the code for get notifications.
Okay.
Get user notification.
Right here inside the firewall method.
I will put the current user.
And right here one literal little files with return this dot notification model file.
Okay.
And right here we should pass the.
What here sender or receiver.
Can you think well it clearly a receiver right.
Now let's hit a little bit to understand why receivers right now.
Okay I hope you clear.
And, uh.
Okay.
That is, we need to do the visualization also.
But right now, let's me test that.
This.
Ah, here, let me remove the current users.
And make sure with authentication.
Okay.
Let's open the API and I will.
Create new folders.
I will call notification I will move that.
Here.
Okay I will close.
.
Added we request.
And I will rename.
So.
That my presentation.
Okay.
And what we need to do I will sign it with the zone account okay.
Come with us and good good here.
But it is a authentication with bearer token over here.
Who does whom?
What are you going on?
Let me go by.
Notification.
let me say, uh, cannot get right here.
You should put the notifications in the controller.
Let me say again we already got this information right.
And of course we need to mobilize that and custom for this.
Right.
Let me go back.
And right now let me verbalize.
First one will be sender okay.
The sender is a current user.
So I can read on this.
Sorry.
The receiver is current users right.
You don't need to, uh, move that.
Uh, actually, let me think.
We can move the sender and.
No mercy.
So okay.
Let's say.
Are you.
Not going to say the sender will be the source and receiver will be the.
Okay.
We already logged in with that account over here, right?
So, uh.
It means right now.
We should.
Boost the sender.
Okay.
You should.
You only need to populate the sender.
Okay?
We don't need the current information.
Right?
Say we already got the sender also, right.
And we need to, uh, add it.
We only need the name.
Until we already have, uh, an avatar.
Maybe if we have avatar.
Let me say.
Okay.
We already got the name over here because the Thomas don't have any avatar.
So it will not show.
And let me create a little robot tool here and create a little.
Right.
This one notification.
You guys right here are real class.
And we need a sender information.
Okay.
And after that, we need here.
Um, we can, uh, I will copy everything and move that directly over here.
Let me remove the comma over here and reward it.
Okay.
And right here let me rename the string.
Here we.
See.
That.
Okay.
There is an error here.
And with this here we need to customize that.
Right.
Let me go.
Out and.
Replace with them and with the avatar URL we need to.
We need to copy from user.
User DTO.
Over here.
Right.
Copy everything over here.
And what is over here with its borders?
And with this here we have, uh, object dot dot avatar.
Okay.
So here we are again.
Let us objects send the avatar of the ID and let's set it.
And much more right here we need to use Jan probably to.
Say.
Okay.
We already got this data right.
And now we need what we need.
We need, uh.
Okay.
So right here, let me try to add another reaction to create one more, uh, data over here.
You can see when I chain.
So.
Hopefully a lot over here I will set this up a message.
And let me say again you will say we already got the new information right now I will not remove the
previous one because the notification cannot be removed.
Okay.
But if you want to do that, feel free to do that.
Okay, now it's very easy if you need, you just need to write a service to remove the notifications.
Okay.
With me?
I will not do that.
I will create two object to test for vegetation, and I will do the vegetation for the next video.
Okay.
And right now I want to aware about us using a notification service.
We already have a create method okay.
Please pause the video and maybe apply the create method for different service you want.
Okay.
With me?
I will not do that.
Okay.
I only demonstrate for you the create method inside the reaction of the boss.
Okay, maybe you can apply that in the frame or command or something like that.
Okay I will not do that.
Right.
I will leave that job for you.
But you got the idea, right?
So that's for the video and I will see you in the next one.