Package com.twilio.rest.flexapi.v1
Class Interaction
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.flexapi.v1.Interaction
-
- All Implemented Interfaces:
Serializable
public class Interaction extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InteractionCreator
creator(Map<String,Object> channel, Map<String,Object> routing)
boolean
equals(Object o)
static InteractionFetcher
fetcher(String pathSid)
static Interaction
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Interaction object using the provided ObjectMapper.static Interaction
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Interaction object using the provided ObjectMapper.Map<String,Object>
getChannel()
Map<String,String>
getLinks()
Map<String,Object>
getRouting()
String
getSid()
URI
getUrl()
int
hashCode()
-
-
-
Method Detail
-
creator
public static InteractionCreator creator(Map<String,Object> channel, Map<String,Object> routing)
-
fetcher
public static InteractionFetcher fetcher(String pathSid)
-
fromJson
public static Interaction fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Interaction object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Interaction object represented by the provided JSON
-
fromJson
public static Interaction fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Interaction object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Interaction object represented by the provided JSON
-
getSid
public final String getSid()
-
getUrl
public final URI getUrl()
-
-