Hi everyone.
In this video let's continue with the new features of the project will be the notifications.
Okay, so in this video let's prepare the modules and create some schemas for notifications.
Okay let's create a new one.
Okay.
After we have notifications right here let's create a schemas and notification dot schema dot txt and
let me copy some thing.
My boy is size a command.
Okay, let me copy everything from the command over here.
Buddhas and rename that.
Okay.
After last, let me apologize.
Okay.
Firstly, we made a sentence whereby user document.
And right here we will users.
Okay.
With this style.
Tie up to our center.
We need to have a receiver.
Okay.
We will use our one also.
And, uh.
We need to contain.
Uh, we need to tie.
Okay.
Screen.
Is cropped, and I will show you why we need the robbery.
Uh, we need the prop.
We will contact you.
Okay, so that will be screen.
Tie will be straight also.
And, uh, we will have a prop.
We race a race.
Boolean.
And we need.
To we thought okay, when we create a notification it is written here will be true.
Sorry will be false.
We have a content is rich.
And let me say we have one more thing.
We will link to it.
Okay.
In this case we just need to to boost.
The ID over here.
Let me say and copy the time.
With on this reference.
Okay I will explain for you what exactly does.
Firstly what is the sender and receiver.
Okay.
When we create a notification for example.
Furthermore this will Create a boss one.
Okay.
And Tomas lives part one.
What happened?
Right.
Right now.
It made the center around here with me.
Okay.
The Tomas will send the notification for the zone.
Okay.
With the content line.
Thomas.
Has.
Live your boss.
Okay.
For example, like this.
Okay.
Understand it.
Why?
Firstly, we need the the sender.
The sender is who?
Send a notification.
Okay.
And receiver will be who receive the notifications.
And what is the time.
Well in the notification we have so many time for example.
Right.
I prime request or.
Command.
Or like okay.
So if we like boss, it means the ties right here will be like okay, if the command boss, it means
the tie will be.
Okay at least.
And of course, we need to create the, uh.
The enum.
Right.
Let me, uh, go back to the course and, uh, goals and constant over here.
Let me spot on notification.
Uh.
Request like a command.
Okay.
I think with my I only need three element over here.
And I will put the minimum.
Notification price.
And of course we need to create the input file.
Sorry the the ties for us.
Okay.
We have a global over here.
Let me create ties.
I notification pie.
Okay.
Coming over here.
What does.
All this strike and contain will be the content of this here and is read by the file will be phones.
And what exactly about the link to ID?
Well, what's it does?
Well, for example, if the Thomas lies the post okay up zone over here, it means the link to editor
here will be link to the boss up the zone over here okay.
Furthermore, line link to ID will be the sub array of the boss one.
Okay.
We'll start it.
Right.
Over.
And right here.
We don't need a new reference.
Why?
Because we only need reference if we populate us.
Okay.
With this field, we don't need to populate.
Furthermore, if later we create the the type will be like it made, the link to it will be the boss
array.
Okay.
If the type will be command, it means the link will be made right if we send the frame.
Link right here.
Maybe a user array.
Okay.
Understand it.
Right.
Okay.
That's about the structure of the notifications.
So.
I hope you understand this video and I will see you in the next one.