Class InteractionChannel
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.flexapi.v1.interaction.InteractionChannel
-
- All Implemented Interfaces:
Serializable
public class InteractionChannel extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InteractionChannel.ChannelStatus
static class
InteractionChannel.Status
static class
InteractionChannel.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static InteractionChannelFetcher
fetcher(String pathInteractionSid, String pathSid)
static InteractionChannel
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a InteractionChannel object using the provided ObjectMapper.static InteractionChannel
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a InteractionChannel object using the provided ObjectMapper.Integer
getErrorCode()
String
getErrorMessage()
String
getInteractionSid()
Map<String,String>
getLinks()
String
getSid()
InteractionChannel.ChannelStatus
getStatus()
InteractionChannel.Type
getType()
URI
getUrl()
int
hashCode()
static InteractionChannelReader
reader(String pathInteractionSid)
static InteractionChannelUpdater
updater(String pathInteractionSid, String pathSid, InteractionChannel.Status status)
-
-
-
Method Detail
-
fetcher
public static InteractionChannelFetcher fetcher(String pathInteractionSid, String pathSid)
-
reader
public static InteractionChannelReader reader(String pathInteractionSid)
-
updater
public static InteractionChannelUpdater updater(String pathInteractionSid, String pathSid, InteractionChannel.Status status)
-
fromJson
public static InteractionChannel fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a InteractionChannel object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- InteractionChannel object represented by the provided JSON
-
fromJson
public static InteractionChannel fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a InteractionChannel object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- InteractionChannel object represented by the provided JSON
-
getSid
public final String getSid()
-
getInteractionSid
public final String getInteractionSid()
-
getType
public final InteractionChannel.Type getType()
-
getStatus
public final InteractionChannel.ChannelStatus getStatus()
-
getErrorCode
public final Integer getErrorCode()
-
getErrorMessage
public final String getErrorMessage()
-
getUrl
public final URI getUrl()
-
-