Class Subscriptions


  • public class Subscriptions
    extends Object
    This is a model class for Subscriptions type.
    • 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.
        Overrides:
        toString in class Object
        Returns:
        String representation of this class