Class Channels

java.lang.Object
com.vonage.client.users.channels.Channels

public final class Channels extends Object
Represents the "channels" field on User.
  • Constructor Details

    • Channels

      public Channels(Collection<? extends Channel> channels)
      Creates a new Channels object and assigns the specified channels to the appropriate fields based on their type.
      Parameters:
      channels - The contact methods to associate with this user.
  • Method Details

    • getPstn

      public List<Pstn> getPstn()
      PSTN channels.
      Returns:
      The list of PSTN channels, or null if not set.
    • getSip

      public List<Sip> getSip()
      SIP channels.
      Returns:
      The list of SIP channels, or null if not set.
    • getVbc

      public List<Vbc> getVbc()
      VBC channels.
      Returns:
      The list of VBC channels, or null if not set.
    • getWebsocket

      Websocket channels.
      Returns:
      The list of Websocket channels, or null if not set.
    • getSms

      public List<Sms> getSms()
      SMS channels.
      Returns:
      The list of SMS channels, or null if not set.
    • getMms

      public List<Mms> getMms()
      MMS channels.
      Returns:
      The list of MMS channels, or null if not set.
    • getWhatsapp

      WhatsApp channels.
      Returns:
      The list of WhatsApp channels, or null if not set.
    • getViber

      public List<Viber> getViber()
      Viber channels.
      Returns:
      The list of Viber channels, or null if not set.
    • getMessenger

      Messenger channels.
      Returns:
      The list of Messenger channels, or null if not set.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object