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 Account Sid..
|
PhoneNumber |
getContactChannelAddress()
Returns The The phone number, SIP address or Client identifier that triggered
this Engagement..
|
String |
getContactSid()
Returns The Contact Sid..
|
Map<String,Object> |
getContext()
Returns The Nested resource URLs..
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this Engagement was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this Engagement was updated.
|
String |
getFlowSid()
Returns The Flow Sid..
|
Map<String,String> |
getLinks()
Returns The Nested resource URLs..
|
String |
getSid()
Returns The A string that uniquely identifies this Engagement..
|
Engagement.Status |
getStatus()
Returns The The Status of this Engagement.
|
URI |
getUrl()
Returns The The URL of this resource..
|
int |
hashCode() |
static EngagementReader |
reader(String pathFlowSid)
Create a EngagementReader to execute read.
|
String |
toString() |
public static EngagementReader reader(String pathFlowSid)
pathFlowSid - Flow Sid.public static EngagementFetcher fetcher(String pathFlowSid, String pathSid)
pathFlowSid - The flow_sidpathSid - The sidpublic static EngagementCreator creator(String pathFlowSid, PhoneNumber to, PhoneNumber from)
pathFlowSid - Flow Sid.to - The tofrom - The frompublic static EngagementDeleter deleter(String pathFlowSid, String pathSid)
pathFlowSid - Flow Sid.pathSid - A string that uniquely identifies this Engagement.public 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 PhoneNumber getContactChannelAddress()
public final Engagement.Status getStatus()
public final Map<String,Object> getContext()
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 © 2016 Twilio, Inc. All Rights Reserved.