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 SID of the Account that created the resource.
|
String |
getAttributes()
Returns The JSON string that stores application-specific data.
|
String |
getCreatedBy()
Returns The identity of the User that created the channel.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
Map<String,String> |
getLinks()
Returns Absolute URLs to access the Members, Messages , Invites and, if it
exists, the last Message for the Channel.
|
Integer |
getMembersCount()
Returns The number of Members in the Channel.
|
Integer |
getMessagesCount()
Returns The number of Messages in the Channel.
|
String |
getServiceSid()
Returns The SID of the Service that the resource is associated with.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Channel.ChannelType |
getType()
Returns The visibility of the channel.
|
String |
getUniqueName()
Returns An application-defined string that uniquely identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the Channel resource.
|
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 SID of the Service to fetch the resource frompathSid
- The unique string that identifies the resourcepublic static ChannelDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to delete the resource frompathSid
- The unique string that identifies the resourcepublic static ChannelCreator creator(String pathServiceSid)
pathServiceSid
- The SID of the Service to create the resource underpublic static ChannelReader reader(String pathServiceSid)
pathServiceSid
- The SID of the Service to read the resources frompublic static ChannelUpdater updater(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to update the resource frompathSid
- The unique string that identifies the resourcepublic 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()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.