Class UserChannel
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.chat.v2.service.user.UserChannel
-
- All Implemented Interfaces:
Serializable
public class UserChannel extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserChannel.ChannelStatus
static class
UserChannel.NotificationLevel
static class
UserChannel.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserChannelDeleter
deleter(String pathServiceSid, String pathUserSid, String pathChannelSid)
boolean
equals(Object o)
static UserChannelFetcher
fetcher(String pathServiceSid, String pathUserSid, String pathChannelSid)
static UserChannel
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UserChannel object using the provided ObjectMapper.static UserChannel
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UserChannel object using the provided ObjectMapper.String
getAccountSid()
String
getChannelSid()
Integer
getLastConsumedMessageIndex()
Map<String,String>
getLinks()
String
getMemberSid()
UserChannel.NotificationLevel
getNotificationLevel()
String
getServiceSid()
UserChannel.ChannelStatus
getStatus()
Integer
getUnreadMessagesCount()
URI
getUrl()
String
getUserSid()
int
hashCode()
static UserChannelReader
reader(String pathServiceSid, String pathUserSid)
static UserChannelUpdater
updater(String pathServiceSid, String pathUserSid, String pathChannelSid)
-
-
-
Method Detail
-
deleter
public static UserChannelDeleter deleter(String pathServiceSid, String pathUserSid, String pathChannelSid)
-
fetcher
public static UserChannelFetcher fetcher(String pathServiceSid, String pathUserSid, String pathChannelSid)
-
reader
public static UserChannelReader reader(String pathServiceSid, String pathUserSid)
-
updater
public static UserChannelUpdater updater(String pathServiceSid, String pathUserSid, String pathChannelSid)
-
fromJson
public static UserChannel fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UserChannel object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- UserChannel object represented by the provided JSON
-
fromJson
public static UserChannel fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UserChannel object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- UserChannel object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getChannelSid
public final String getChannelSid()
-
getUserSid
public final String getUserSid()
-
getMemberSid
public final String getMemberSid()
-
getStatus
public final UserChannel.ChannelStatus getStatus()
-
getLastConsumedMessageIndex
public final Integer getLastConsumedMessageIndex()
-
getUnreadMessagesCount
public final Integer getUnreadMessagesCount()
-
getUrl
public final URI getUrl()
-
getNotificationLevel
public final UserChannel.NotificationLevel getNotificationLevel()
-
-