public class Member extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static MemberFetcher |
fetcher(String pathQueueSid,
String pathCallSid)
Create a MemberFetcher to execute fetch.
|
static MemberFetcher |
fetcher(String pathAccountSid,
String pathQueueSid,
String pathCallSid)
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 |
getCallSid()
Returns The SID of the Call the resource is associated with.
|
ZonedDateTime |
getDateEnqueued()
Returns The date the member was enqueued.
|
Integer |
getPosition()
Returns This member's current position in the queue..
|
String |
getQueueSid()
Returns The SID of the Queue the member is in.
|
String |
getUri()
Returns The URI of the resource, relative to `https://api.twilio.com`.
|
Integer |
getWaitTime()
Returns The number of seconds the member has been in the queue..
|
int |
hashCode() |
static MemberReader |
reader(String pathQueueSid)
Create a MemberReader to execute read.
|
static MemberReader |
reader(String pathAccountSid,
String pathQueueSid)
Create a MemberReader to execute read.
|
static MemberUpdater |
updater(String pathAccountSid,
String pathQueueSid,
String pathCallSid,
URI url)
Create a MemberUpdater to execute update.
|
static MemberUpdater |
updater(String pathQueueSid,
String pathCallSid,
URI url)
Create a MemberUpdater to execute update.
|
public static MemberFetcher fetcher(String pathAccountSid, String pathQueueSid, String pathCallSid)
pathAccountSid
- The SID of the Account that created the resource(s) to
fetchpathQueueSid
- The SID of the Queue in which to find the memberspathCallSid
- The Call SID of the resource(s) to fetchpublic static MemberFetcher fetcher(String pathQueueSid, String pathCallSid)
pathQueueSid
- The SID of the Queue in which to find the memberspathCallSid
- The Call SID of the resource(s) to fetchpublic static MemberUpdater updater(String pathAccountSid, String pathQueueSid, String pathCallSid, URI url)
pathAccountSid
- The SID of the Account that created the resource(s) to
updatepathQueueSid
- The SID of the Queue in which to find the memberspathCallSid
- The Call SID of the resource(s) to updateurl
- The absolute URL of the Queue resourcepublic static MemberUpdater updater(String pathQueueSid, String pathCallSid, URI url)
pathQueueSid
- The SID of the Queue in which to find the memberspathCallSid
- The Call SID of the resource(s) to updateurl
- The absolute URL of the Queue resourcepublic static MemberReader reader(String pathAccountSid, String pathQueueSid)
pathAccountSid
- The SID of the Account that created the resource(s) to
readpathQueueSid
- The SID of the Queue in which to find the memberspublic static MemberReader reader(String pathQueueSid)
pathQueueSid
- The SID of the Queue in which to find the memberspublic static Member fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Member fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getCallSid()
public final ZonedDateTime getDateEnqueued()
public final Integer getPosition()
public final String getUri()
public final Integer getWaitTime()
public final String getQueueSid()
Copyright © 2019 Twilio, Inc. All Rights Reserved.