Package com.bandwidth.webrtc.models
Class Subscriptions
- java.lang.Object
-
- com.bandwidth.webrtc.models.Subscriptions
-
public class Subscriptions extends 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(String sessionId, List<ParticipantSubscription> participants)
Initialization constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ParticipantSubscription>
getParticipants()
Getter for Participants.String
getSessionId()
Getter for SessionId.void
setParticipants(List<ParticipantSubscription> participants)
Setter for Participants.void
setSessionId(String sessionId)
Setter for SessionId.Subscriptions.Builder
toBuilder()
Builds a newSubscriptions.Builder
object.String
toString()
Converts this Subscriptions into string format.
-
-
-
Constructor Detail
-
Subscriptions
public Subscriptions()
Default constructor.
-
Subscriptions
public Subscriptions(String sessionId, List<ParticipantSubscription> participants)
Initialization constructor.- Parameters:
sessionId
- String value for sessionId.participants
- List of ParticipantSubscription value for participants.
-
-
Method Detail
-
getSessionId
public 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(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
public List<ParticipantSubscription> getParticipants()
Getter for Participants. Subset of participants to subscribe to in the session. Optional.- Returns:
- Returns the List of ParticipantSubscription
-
setParticipants
public void setParticipants(List<ParticipantSubscription> participants)
Setter for Participants. Subset of participants to subscribe to in the session. Optional.- Parameters:
participants
- Value for List of ParticipantSubscription
-
toString
public String toString()
Converts this Subscriptions into string format.
-
toBuilder
public Subscriptions.Builder toBuilder()
Builds a newSubscriptions.Builder
object. Creates the instance with the state of the current model.- Returns:
- a new
Subscriptions.Builder
object
-
-