public class Channel extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Channel.ChannelType |
static class |
Channel.WebhookEnabledType |
Modifier and Type | Method and Description |
---|---|
static ChannelCreator |
creator(String pathServiceSid)
Create a ChannelCreator to execute create.
|
static ChannelDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a ChannelDeleter to execute delete.
|
boolean |
equals(Object o) |
static ChannelFetcher |
fetcher(String pathServiceSid,
String pathSid)
Create a ChannelFetcher to execute fetch.
|
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()
Returns The account_sid.
|
String |
getAttributes()
Returns The attributes.
|
String |
getCreatedBy()
Returns The created_by.
|
ZonedDateTime |
getDateCreated()
Returns The date_created.
|
ZonedDateTime |
getDateUpdated()
Returns The date_updated.
|
String |
getFriendlyName()
Returns The friendly_name.
|
Map<String,String> |
getLinks()
Returns The links.
|
Integer |
getMembersCount()
Returns The members_count.
|
Integer |
getMessagesCount()
Returns The messages_count.
|
String |
getServiceSid()
Returns The service_sid.
|
String |
getSid()
Returns The sid.
|
Channel.ChannelType |
getType()
Returns The type.
|
String |
getUniqueName()
Returns The unique_name.
|
URI |
getUrl()
Returns The url.
|
int |
hashCode() |
static ChannelReader |
reader(String pathServiceSid)
Create a ChannelReader to execute read.
|
static ChannelUpdater |
updater(String pathServiceSid,
String pathSid)
Create a ChannelUpdater to execute update.
|
public static ChannelFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The sidpublic static ChannelDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The sidpublic static ChannelCreator creator(String pathServiceSid)
pathServiceSid
- The service_sidpublic static ChannelReader reader(String pathServiceSid)
pathServiceSid
- The service_sidpublic static ChannelUpdater updater(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The sidpublic static Channel fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Channel fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getServiceSid()
public final String getFriendlyName()
public final String getUniqueName()
public final String getAttributes()
public final Channel.ChannelType getType()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getCreatedBy()
public final Integer getMembersCount()
public final Integer getMessagesCount()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.