fm.liveswitch.SessionDescription Class Reference

A session description. More...

Public Member Functions

boolean getHasAudio ()
 Gets a value indicating whether an audio stream is described. More...
 
boolean getHasData ()
 Gets a value indicating whether a data stream is described. More...
 
boolean getHasVideo ()
 Gets a value indicating whether a video stream is described. More...
 
boolean getIsOffer ()
 Gets a value indicating whether this instance is offer. More...
 
fm.liveswitch.sdp.Message getSdpMessage ()
 Gets the SDP message. More...
 
long getSessionId ()
 Gets the session id of the remote description, if remote description is set. More...
 
long getSessionVersion ()
 Gets the version of the remote description, if remote description is set. More...
 
String getTieBreaker ()
 Gets the tie breaker in case of a role conflict. More...
 
fm.liveswitch.SessionDescriptionType getType ()
 Gets the type. More...
 
 SessionDescription ()
 
void setSdpMessage (fm.liveswitch.sdp.Message value)
 Sets the SDP message. More...
 
void setSessionVersion (long value)
 Sets the version of the remote description, if remote description is set. More...
 
void setTieBreaker (String value)
 Sets the tie breaker in case of a role conflict. More...
 
void setType (fm.liveswitch.SessionDescriptionType value)
 Sets the type. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 

Static Public Member Functions

static fm.liveswitch.SessionDescription fromJson (String sessionDescriptionJson)
 Deserializes an instance from JSON. More...
 
static String toJson (final fm.liveswitch.SessionDescription sessionDescription)
 Serializes an instance to JSON. More...
 

Detailed Description

A session description.

Constructor & Destructor Documentation

◆ SessionDescription()

fm.liveswitch.SessionDescription.SessionDescription ( )

Member Function Documentation

◆ fromJson()

static fm.liveswitch.SessionDescription fm.liveswitch.SessionDescription.fromJson ( String  sessionDescriptionJson)
static

Deserializes an instance from JSON.

Parameters
sessionDescriptionJsonThe JSON to deserialize.
Returns
The deserialized session description.

◆ getHasAudio()

boolean fm.liveswitch.SessionDescription.getHasAudio ( )

Gets a value indicating whether an audio stream is described.

◆ getHasData()

boolean fm.liveswitch.SessionDescription.getHasData ( )

Gets a value indicating whether a data stream is described.

◆ getHasVideo()

boolean fm.liveswitch.SessionDescription.getHasVideo ( )

Gets a value indicating whether a video stream is described.

◆ getIsOffer()

boolean fm.liveswitch.SessionDescription.getIsOffer ( )

Gets a value indicating whether this instance is offer.

◆ getSdpMessage()

fm.liveswitch.sdp.Message fm.liveswitch.SessionDescription.getSdpMessage ( )

Gets the SDP message.

◆ getSessionId()

long fm.liveswitch.SessionDescription.getSessionId ( )

Gets the session id of the remote description, if remote description is set.

Returns null otherwise.

◆ getSessionVersion()

long fm.liveswitch.SessionDescription.getSessionVersion ( )

Gets the version of the remote description, if remote description is set.

Returns null otherwise.

◆ getTieBreaker()

String fm.liveswitch.SessionDescription.getTieBreaker ( )

Gets the tie breaker in case of a role conflict.

◆ getType()

fm.liveswitch.SessionDescriptionType fm.liveswitch.SessionDescription.getType ( )

Gets the type.

◆ setSdpMessage()

void fm.liveswitch.SessionDescription.setSdpMessage ( fm.liveswitch.sdp.Message  value)

Sets the SDP message.

◆ setSessionVersion()

void fm.liveswitch.SessionDescription.setSessionVersion ( long  value)

Sets the version of the remote description, if remote description is set.

Returns null otherwise.

◆ setTieBreaker()

void fm.liveswitch.SessionDescription.setTieBreaker ( String  value)

Sets the tie breaker in case of a role conflict.

◆ setType()

void fm.liveswitch.SessionDescription.setType ( fm.liveswitch.SessionDescriptionType  value)

Sets the type.

◆ toJson() [1/2]

String fm.liveswitch.SessionDescription.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.SessionDescription.toJson ( final fm.liveswitch.SessionDescription  sessionDescription)
static

Serializes an instance to JSON.

Parameters
sessionDescriptionThe session description.
Returns
The serialized JSON.