Class Channel
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.ipmessaging.v1.service.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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChannelCreator
creator(String pathServiceSid)
static ChannelDeleter
deleter(String pathServiceSid, String pathSid)
boolean
equals(Object o)
static ChannelFetcher
fetcher(String pathServiceSid, String pathSid)
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()
Map<String,String>
getLinks()
Integer
getMembersCount()
Integer
getMessagesCount()
String
getServiceSid()
String
getSid()
Channel.ChannelType
getType()
String
getUniqueName()
URI
getUrl()
int
hashCode()
static ChannelReader
reader(String pathServiceSid)
static ChannelUpdater
updater(String pathServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static ChannelCreator creator(String pathServiceSid)
-
deleter
public static ChannelDeleter deleter(String pathServiceSid, String pathSid)
-
fetcher
public static ChannelFetcher fetcher(String pathServiceSid, String pathSid)
-
reader
public static ChannelReader reader(String pathServiceSid)
-
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()
-
getUrl
public final URI getUrl()
-
-