public class UserChannel extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
UserChannel.ChannelStatus |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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()
Returns The SID of the Account that created the resource.
|
String |
getChannelSid()
Returns The SID of the Channel the resource belongs to.
|
Integer |
getLastConsumedMessageIndex()
Returns The index of the last Message in the Channel the Member has read.
|
Map<String,String> |
getLinks()
Returns Absolute URLs to access the Members, Messages , Invites and, if it
exists, the last Message for the Channel.
|
String |
getMemberSid()
Returns The SID of the User as a Member in the Channel.
|
String |
getServiceSid()
Returns The SID of the Service that the resource is associated with.
|
UserChannel.ChannelStatus |
getStatus()
Returns The status of the User on the Channel.
|
Integer |
getUnreadMessagesCount()
Returns The number of unread Messages in the Channel for the User.
|
int |
hashCode() |
static UserChannelReader |
reader(String pathServiceSid,
String pathUserSid)
Create a UserChannelReader to execute read.
|
public static UserChannelReader reader(String pathServiceSid, String pathUserSid)
pathServiceSid
- The SID of the Service to read the resources frompathUserSid
- The SID of the User to fetch the User Channel resources
frompublic static UserChannel fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static UserChannel fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getServiceSid()
public final String getChannelSid()
public final String getMemberSid()
public final UserChannel.ChannelStatus getStatus()
public final Integer getLastConsumedMessageIndex()
public final Integer getUnreadMessagesCount()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.