Package com.bandwidth.webrtc.models
Class Subscriptions
java.lang.Object
com.bandwidth.webrtc.models.Subscriptions
public class Subscriptions
extends java.lang.Object
This is a model class for Subscriptions type.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Subscriptions.Builder
Class to build instances ofSubscriptions
. -
Constructor Summary
Constructors Constructor Description Subscriptions()
Default constructor.Subscriptions(java.lang.String sessionId, java.util.List<ParticipantSubscription> participants)
Initialization constructor. -
Method Summary
Modifier and Type Method Description java.util.List<ParticipantSubscription>
getParticipants()
Getter for Participants.java.lang.String
getSessionId()
Getter for SessionId.void
setParticipants(java.util.List<ParticipantSubscription> participants)
Setter for Participants.void
setSessionId(java.lang.String sessionId)
Setter for SessionId.Subscriptions.Builder
toBuilder()
Builds a newSubscriptions.Builder
object.java.lang.String
toString()
Converts this Subscriptions into string format.
-
Constructor Details
-
Subscriptions
public Subscriptions()Default constructor. -
Subscriptions
public Subscriptions(java.lang.String sessionId, java.util.List<ParticipantSubscription> participants)Initialization constructor.- Parameters:
sessionId
- String value for sessionId.participants
- List of ParticipantSubscription value for participants.
-
-
Method Details
-
getSessionId
public java.lang.String getSessionId()Getter for SessionId. Session the subscriptions are associated with If this is the only field, the subscriber will be subscribed to all participants in the session (including any participants that are later added to the session)- Returns:
- Returns the String
-
setSessionId
public void setSessionId(java.lang.String sessionId)Setter for SessionId. Session the subscriptions are associated with If this is the only field, the subscriber will be subscribed to all participants in the session (including any participants that are later added to the session)- Parameters:
sessionId
- Value for String
-
getParticipants
Getter for Participants. Subset of participants to subscribe to in the session. Optional.- Returns:
- Returns the List of ParticipantSubscription
-
setParticipants
Setter for Participants. Subset of participants to subscribe to in the session. Optional.- Parameters:
participants
- Value for List of ParticipantSubscription
-
toString
public java.lang.String toString()Converts this Subscriptions into string format.- Overrides:
toString
in classjava.lang.Object
- Returns:
- String representation of this class
-
toBuilder
Builds a newSubscriptions.Builder
object. Creates the instance with the state of the current model.- Returns:
- a new
Subscriptions.Builder
object
-