Class Member
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.ipmessaging.v2.service.channel.Member
-
- All Implemented Interfaces:
Serializable
public class Member extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Member.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MemberCreator
creator(String pathServiceSid, String pathChannelSid, String identity)
Create a MemberCreator to execute create.static MemberDeleter
deleter(String pathServiceSid, String pathChannelSid, String pathSid)
Create a MemberDeleter to execute delete.boolean
equals(Object o)
static MemberFetcher
fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
Create a MemberFetcher to execute fetch.static Member
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Member object using the provided ObjectMapper.static Member
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Member object using the provided ObjectMapper.String
getAccountSid()
Returns The The SID of the Account that created the resource.String
getAttributes()
Returns The The JSON string that stores application-specific data.String
getChannelSid()
Returns The The unique ID of the Channel for the member.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.String
getIdentity()
Returns The The string that identifies the resource's User.Integer
getLastConsumedMessageIndex()
Returns The The index of the last Message that the Member has read within the Channel.org.joda.time.DateTime
getLastConsumptionTimestamp()
Returns The The ISO 8601 based timestamp string that represents the date-time of the last Message read event for the Member within the Channel.String
getRoleSid()
Returns The The SID of the Role assigned to the member.String
getServiceSid()
Returns The The SID of the Service that the resource is associated with.String
getSid()
Returns The The unique string that identifies the resource.URI
getUrl()
Returns The The absolute URL of the Member resource.int
hashCode()
static MemberReader
reader(String pathServiceSid, String pathChannelSid)
Create a MemberReader to execute read.String
toString()
static MemberUpdater
updater(String pathServiceSid, String pathChannelSid, String pathSid)
Create a MemberUpdater to execute update.
-
-
-
Method Detail
-
fetcher
public static MemberFetcher fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
Create a MemberFetcher to execute fetch.- Parameters:
pathServiceSid
- The SID of the Service to fetch the resource frompathChannelSid
- The unique ID of the channel the member belongs topathSid
- The unique string that identifies the resource- Returns:
- MemberFetcher capable of executing the fetch
-
creator
public static MemberCreator creator(String pathServiceSid, String pathChannelSid, String identity)
Create a MemberCreator to execute create.- Parameters:
pathServiceSid
- The SID of the Service to create the resource underpathChannelSid
- The unique ID of the channel the new member belongs toidentity
- The `identity` value that identifies the new resource's User- Returns:
- MemberCreator capable of executing the create
-
reader
public static MemberReader reader(String pathServiceSid, String pathChannelSid)
Create a MemberReader to execute read.- Parameters:
pathServiceSid
- The SID of the Service to read the resources frompathChannelSid
- The unique ID of the channel the member belongs to- Returns:
- MemberReader capable of executing the read
-
deleter
public static MemberDeleter deleter(String pathServiceSid, String pathChannelSid, String pathSid)
Create a MemberDeleter to execute delete.- Parameters:
pathServiceSid
- The SID of the Service to delete the resource frompathChannelSid
- The unique ID of the channel the message to delete belongs topathSid
- The unique string that identifies the resource- Returns:
- MemberDeleter capable of executing the delete
-
updater
public static MemberUpdater updater(String pathServiceSid, String pathChannelSid, String pathSid)
Create a MemberUpdater to execute update.- Parameters:
pathServiceSid
- The SID of the Service to create the resource underpathChannelSid
- The unique ID of the channel the member to update belongs topathSid
- The unique string that identifies the resource- Returns:
- MemberUpdater capable of executing the update
-
fromJson
public static Member fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Member object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Member object represented by the provided JSON
-
fromJson
public static Member fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Member object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Member object represented by the provided JSON
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getChannelSid
public final String getChannelSid()
Returns The The unique ID of the Channel for the member.- Returns:
- The unique ID of the Channel for the member
-
getServiceSid
public final String getServiceSid()
Returns The The SID of the Service that the resource is associated with.- Returns:
- The SID of the Service that the resource is associated with
-
getIdentity
public final String getIdentity()
Returns The The string that identifies the resource's User.- Returns:
- The string that identifies the resource's User
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.- Returns:
- The RFC 2822 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT when the resource was last updated
-
getRoleSid
public final String getRoleSid()
Returns The The SID of the Role assigned to the member.- Returns:
- The SID of the Role assigned to the member
-
getLastConsumedMessageIndex
public final Integer getLastConsumedMessageIndex()
Returns The The index of the last Message that the Member has read within the Channel.- Returns:
- The index of the last Message that the Member has read within the Channel
-
getLastConsumptionTimestamp
public final org.joda.time.DateTime getLastConsumptionTimestamp()
Returns The The ISO 8601 based timestamp string that represents the date-time of the last Message read event for the Member within the Channel.- Returns:
- The ISO 8601 based timestamp string that represents the date-time of the last Message read event for the Member within the Channel
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the Member resource.- Returns:
- The absolute URL of the Member resource
-
getAttributes
public final String getAttributes()
Returns The The JSON string that stores application-specific data.- Returns:
- The JSON string that stores application-specific data
-
-