public class Engagement extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Engagement.Status |
Modifier and Type | Method and Description |
---|---|
static EngagementCreator |
creator(String pathFlowSid,
PhoneNumber to,
PhoneNumber from)
Create a EngagementCreator to execute create.
|
static EngagementDeleter |
deleter(String pathFlowSid,
String pathSid)
Create a EngagementDeleter to execute delete.
|
boolean |
equals(Object o) |
static EngagementFetcher |
fetcher(String pathFlowSid,
String pathSid)
Create a EngagementFetcher to execute fetch.
|
static Engagement |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Engagement object using the provided
ObjectMapper.
|
static Engagement |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Engagement object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getContactChannelAddress()
Returns The phone number, SIP address or Client identifier that triggered
this Engagement.
|
String |
getContactSid()
Returns The SID of the Contact.
|
Map<String,Object> |
getContext()
Returns The current state of the execution flow.
|
org.joda.time.DateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the Engagement was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the Engagement was last
updated.
|
String |
getFlowSid()
Returns The SID of the Flow.
|
Map<String,String> |
getLinks()
Returns The URLs of the Engagement's nested resources.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Engagement.Status |
getStatus()
Returns The status of the Engagement.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
int |
hashCode() |
static EngagementReader |
reader(String pathFlowSid)
Create a EngagementReader to execute read.
|
String |
toString() |
public static EngagementReader reader(String pathFlowSid)
pathFlowSid
- The SID of the Flow to read Engagements frompublic static EngagementFetcher fetcher(String pathFlowSid, String pathSid)
pathFlowSid
- Flow SIDpathSid
- The SID of the Engagement resource to fetchpublic static EngagementCreator creator(String pathFlowSid, PhoneNumber to, PhoneNumber from)
pathFlowSid
- The SID of the Flowto
- The Contact phone number to start a Studio Flow Engagementfrom
- The Twilio phone number to send messages or initiate calls from
during the Flow Engagementpublic static EngagementDeleter deleter(String pathFlowSid, String pathSid)
pathFlowSid
- The SID of the Flow to delete Engagements frompathSid
- The SID of the Engagement resource to deletepublic static Engagement fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Engagement fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getFlowSid()
public final String getContactSid()
public final String getContactChannelAddress()
public final Map<String,Object> getContext()
public final Engagement.Status getStatus()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.