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 classUserChannel.ChannelStatusstatic classUserChannel.NotificationLevelstatic classUserChannel.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserChannelDeleterdeleter(String pathServiceSid, String pathUserSid, String pathChannelSid)booleanequals(Object o)static UserChannelFetcherfetcher(String pathServiceSid, String pathUserSid, String pathChannelSid)static UserChannelfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a UserChannel object using the provided ObjectMapper.static UserChannelfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a UserChannel object using the provided ObjectMapper.StringgetAccountSid()StringgetChannelSid()IntegergetLastConsumedMessageIndex()Map<String,String>getLinks()StringgetMemberSid()UserChannel.NotificationLevelgetNotificationLevel()StringgetServiceSid()UserChannel.ChannelStatusgetStatus()IntegergetUnreadMessagesCount()URIgetUrl()StringgetUserSid()inthashCode()static UserChannelReaderreader(String pathServiceSid, String pathUserSid)static UserChannelUpdaterupdater(String pathServiceSid, String pathUserSid, String pathChannelSid)
-
-
-
Method Detail
-
fetcher
public static UserChannelFetcher fetcher(String pathServiceSid, String pathUserSid, String pathChannelSid)
-
deleter
public static UserChannelDeleter deleter(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()
-
-