java.lang.Object
dev.onvoid.webrtc.examples.web.model.SignalingMessage
dev.onvoid.webrtc.examples.web.model.IceCandidateMessage
Represents an ICE candidate message used in WebRTC signaling.
This class is used to exchange ICE candidates between peers during the connection establishment process.
- Author:
- Alex Andres
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class representing the data payload of an ICE candidate message. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required for JSON deserialization.IceCandidateMessage(String from, String to) Creates a new IceCandidateMessage with the specified sender and recipient.IceCandidateMessage(String from, String to, String candidate, String sdpMid, int sdpMLineIndex) Creates a new IceCandidateMessage with the specified sender, recipient, and candidate information. -
Method Summary
Modifier and TypeMethodDescriptiongetData()Gets the ICE candidate data.voidSets the ICE candidate data.
-
Constructor Details
-
IceCandidateMessage
public IceCandidateMessage()Default constructor required for JSON deserialization. -
IceCandidateMessage
Creates a new IceCandidateMessage with the specified sender and recipient.- Parameters:
from- the sender ID.to- the recipient ID.
-
IceCandidateMessage
public IceCandidateMessage(String from, String to, String candidate, String sdpMid, int sdpMLineIndex) Creates a new IceCandidateMessage with the specified sender, recipient, and candidate information.- Parameters:
from- the sender ID.to- the recipient ID.candidate- the candidate string.sdpMid- the SDP mid.sdpMLineIndex- the SDP mline index.
-
-
Method Details
-
getData
Gets the ICE candidate data.- Returns:
- the ICE candidate data.
-
setData
Sets the ICE candidate data.- Parameters:
data- the ICE candidate data.
-