Class UserChannel
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.chat.v1.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.ChannelStatus
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)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()StringgetServiceSid()UserChannel.ChannelStatusgetStatus()IntegergetUnreadMessagesCount()inthashCode()static UserChannelReaderreader(String pathServiceSid, String pathUserSid)
-
-
-
Method Detail
-
reader
public static UserChannelReader reader(String pathServiceSid, String pathUserSid)
-
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()
-
getMemberSid
public final String getMemberSid()
-
getStatus
public final UserChannel.ChannelStatus getStatus()
-
getLastConsumedMessageIndex
public final Integer getLastConsumedMessageIndex()
-
getUnreadMessagesCount
public final Integer getUnreadMessagesCount()
-
-