public class Channel extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Channel.ChannelType |
| 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 The account_sid.
|
String |
getAttributes()
Returns The The attributes.
|
String |
getCreatedBy()
Returns The The created_by.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Map<String,String> |
getLinks()
Returns The The links.
|
Integer |
getMembersCount()
Returns The The members_count.
|
Integer |
getMessagesCount()
Returns The The messages_count.
|
String |
getServiceSid()
Returns The The service_sid.
|
String |
getSid()
Returns The The sid.
|
Channel.ChannelType |
getType()
Returns The The type.
|
String |
getUniqueName()
Returns The The unique_name.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static ChannelReader |
reader(String pathServiceSid)
Create a ChannelReader to execute read.
|
String |
toString() |
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 org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getCreatedBy()
public final Integer getMembersCount()
public final Integer getMessagesCount()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.