Hi everyone.
Right now we are already done with the boss and reactions for real time, right?
And we already done with the messages and commands also.
So the next thing will be the frame.
Okay.
In this video we will talk about the frame gateways.
Let's open doors.
Okay.
We need to create the new gateway.
Okay.
So after that go back to the gateways over here.
And we need to import some configuration.
Let our devices these could be listed.
Okay.
And if we look at servers.
Anybody server over here from that.
So can I.
Okay.
Let me remove some reduce import.
Well let handle let open the front service.
What we need to do right now is the create method.
Okay.
In this phrase of it, we need to write the real time for create, accept, reject and remove.
Okay, let me say what exactly a remote.
Okay.
Right here.
It will remove the bending okay.
Now let's continue with the create.
So how we can do that.
You can see right here we need to send a request with a state that will be the bending okay.
And we will have a friend request over here okay.
And you can say for example I send a request for friend request to be okay.
It means.
Right now the receiver will be okay.
We will be.
And the center will be.
I write, first of all.
I hope you clear.
Very clear about us.
Okay.
Don't be confusing.
So it means right now I will separate it into a variable and use one.
Okay.
Save friends await dot.
And we need to convert the save right here into the DTO.
Okay.
If you can say inside the get friend request.
If we said we got the empty data.
Okay.
Uh.
Go here.
Let me click on send friend request.
And I will log in.
I will log in this account.
Oh, sorry.
Please.
Here click on send friend request.
But the header.
And right here we have a Friday.
Let me open the database user.
And I will send Fred into the Thomas over here.
Let me say the message will be success right.
If we click on Get Friend request again.
Now you can see we don't have.
Why?
Because we should log in with the Thomas account to save this thing.
Right?
Somebody will.
Say, okay, right here.
We already got the data.
Will be right here.
Um, but we have a little bit wrong over here.
With that URL.
Hmm.
It means.
Ah, the reason because.
Oh, sorry.
Let me see why.
Huh?
Why it's like that.
Let me go to our controller.
We have a response.
Ready to go Addis Ababa.
Hmm.
Why ask?
When we got off Rhino again.
Okay.
Right here.
We have a request pending with this thing.
Current user ID?
Right.
Hmm.
Why does it say.
Let me try to comment a little to say what actually happened.
Let me say.
Okay.
Right here.
We already got the data.
It means the response For NATO.
It actually worked.
Right.
Let me say why like that?
We have an id, a.
Name and email.
Are.
Right here you can say we got that I like that it means right here.
I don't know why I put this thing before, I don't remember.
Okay.
We need to configure this thing.
Right.
We need to are so restructuring the center.
Okay.
It means right here.
We need to move the center.
Name?
And send an email.
My.
My way.
We don't need to send an email at all.
Okay.
We can feel free to remove that.
We need to send a name and send the ID.
And avatar.
Sender.
Avatar.
Right.
I will call center avatar URL.
And we need to transform.
Object not.
Not centers.
Not only.
That right here will be object, not standard avatar.
Let us.
Okay.
Now let me try this again.
I will say, okay, we already got the message and we already have the data over here.
Okay.
We got the ID sender name, something like that.
Right.
And uh, let me say inside of schema foreign right here we got a timestamp.
Right.
So for a reason, we can feel free to put one more thing, create it up.
And by way of letting us actually if that is not required right now.
Feel free to do that.
Okay.
Let me see it again.
Let y a little bit.
Okay.
So actually now last for a video.
And in the next video we will go to the um the gateway.
Okay.
So this video will be fixing the errors from the video.
So let's follow the video right here and try to create.
Thus I will see you in the next one.