Package com.twilio.rest.chat.v3
Class Channel
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.chat.v3.Channel
-
- All Implemented Interfaces:
Serializable
public class Channel extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChannel.ChannelTypestatic classChannel.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ChannelfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Channel object using the provided ObjectMapper.static ChannelfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Channel object using the provided ObjectMapper.StringgetAccountSid()StringgetAttributes()StringgetCreatedBy()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()IntegergetMembersCount()IntegergetMessagesCount()StringgetMessagingServiceSid()StringgetServiceSid()StringgetSid()Channel.ChannelTypegetType()StringgetUniqueName()URIgetUrl()inthashCode()static ChannelUpdaterupdater(String pathServiceSid, String pathSid)
-
-
-
Method Detail
-
updater
public static ChannelUpdater updater(String pathServiceSid, String pathSid)
-
fromJson
public static Channel fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Channel object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Channel object represented by the provided JSON
-
fromJson
public static Channel fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Channel object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Channel object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getFriendlyName
public final String getFriendlyName()
-
getUniqueName
public final String getUniqueName()
-
getAttributes
public final String getAttributes()
-
getType
public final Channel.ChannelType getType()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getCreatedBy
public final String getCreatedBy()
-
getMembersCount
public final Integer getMembersCount()
-
getMessagesCount
public final Integer getMessagesCount()
-
getMessagingServiceSid
public final String getMessagingServiceSid()
-
getUrl
public final URI getUrl()
-
-