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.
  • 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

      public java.util.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​(java.util.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 java.lang.String toString()
      Converts this Subscriptions into string format.
      Overrides:
      toString in class java.lang.Object
      Returns:
      String representation of this class
    • toBuilder

      public Subscriptions.Builder toBuilder()
      Builds a new Subscriptions.Builder object. Creates the instance with the state of the current model.
      Returns:
      a new Subscriptions.Builder object