Package com.vonage.client.users.channels
Class Channels
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.users.channels.Channels
- All Implemented Interfaces:
Jsonable
Represents the "channels" field on
User.-
Constructor Summary
ConstructorsConstructorDescriptionChannels(Collection<? extends Channel> channels) Creates a new Channels object and assigns the specified channels to the appropriate fields based on their type. -
Method Summary
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
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
PSTN channels.- Returns:
- The list of PSTN channels, or
nullif not set.
-
getSip
SIP channels.- Returns:
- The list of SIP channels, or
nullif not set.
-
getVbc
VBC channels.- Returns:
- The list of VBC channels, or
nullif not set.
-
getWebsocket
Websocket channels.- Returns:
- The list of Websocket channels, or
nullif not set.
-
getSms
SMS channels.- Returns:
- The list of SMS channels, or
nullif not set.
-
getMms
MMS channels.- Returns:
- The list of MMS channels, or
nullif not set.
-
getWhatsapp
WhatsApp channels.- Returns:
- The list of WhatsApp channels, or
nullif not set.
-
getViber
Viber channels.- Returns:
- The list of Viber channels, or
nullif not set.
-
getMessenger
Messenger channels.- Returns:
- The list of Messenger channels, or
nullif not set.
-