java.lang.Object
dev.onvoid.webrtc.examples.web.model.SignalingMessage
dev.onvoid.webrtc.examples.web.model.JoinMessage
Represents a join message used in WebRTC signaling.
This class is used when a peer wants to join a room or session.
- Author:
- Alex Andres
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class representing the data payload of a join message.static classInner class representing user information. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required for JSON deserialization.JoinMessage(String from, String room, String userName) Creates a new JoinMessage with the specified sender, room, and user information. -
Method Summary
Modifier and TypeMethodDescriptiongetData()Gets the join data.voidsetData(JoinMessage.JoinData data) Sets the join data.
-
Constructor Details
-
JoinMessage
public JoinMessage()Default constructor required for JSON deserialization. -
JoinMessage
Creates a new JoinMessage with the specified sender, room, and user information.- Parameters:
from- the sender ID.room- the room to join.userName- the user's name.
-
-
Method Details
-
getData
Gets the join data.- Returns:
- the join data.
-
setData
Sets the join data.- Parameters:
data- the join data.
-