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 class
Channel.ChannelType
static class
Channel.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Channel
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Channel object using the provided ObjectMapper.static Channel
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Channel object using the provided ObjectMapper.String
getAccountSid()
String
getAttributes()
String
getCreatedBy()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
Integer
getMembersCount()
Integer
getMessagesCount()
String
getMessagingServiceSid()
String
getServiceSid()
String
getSid()
Channel.ChannelType
getType()
String
getUniqueName()
URI
getUrl()
int
hashCode()
static ChannelUpdater
updater(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()
-
-