Module webrtc.java.examples
Class SessionDescriptionMessage
java.lang.Object
dev.onvoid.webrtc.examples.web.model.SignalingMessage
dev.onvoid.webrtc.examples.web.model.SessionDescriptionMessage
Represents a session description message used in WebRTC signaling.
This class is used for both offer and answer messages, which contain Session Description Protocol (SDP) information.
- Author:
- Alex Andres
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class representing the data payload of a session description message. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required for JSON deserialization.SessionDescriptionMessage(String type, String from, String to, String sdp) Creates a new SessionDescriptionMessage with the specified type, sender, recipient, and SDP. -
Method Summary
-
Constructor Details
-
SessionDescriptionMessage
public SessionDescriptionMessage()Default constructor required for JSON deserialization. -
SessionDescriptionMessage
Creates a new SessionDescriptionMessage with the specified type, sender, recipient, and SDP.- Parameters:
type- the message type (either "offer" or "answer").from- the sender ID.to- the recipient ID.sdp- the SDP string.
-
-
Method Details
-
getData
Gets the session description data.- Returns:
- the session description data.
-
setData
Sets the session description data.- Parameters:
data- the session description data.
-
setSdp
Sets the SDP string.- Parameters:
sdp- the SDP string.
-
getSdp
Gets the SDP string.- Returns:
- the SDP string.
-