public class Command extends SidResource
Modifier and Type | Method and Description |
---|---|
static CommandCreator |
create(String device,
String command)
Create a CommandCreator to execute create.
|
boolean |
equals(Object o) |
static CommandFetcher |
fetch(String sid)
Create a CommandFetcher to execute fetch.
|
static Command |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Command object using the provided
ObjectMapper.
|
static Command |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Command object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
String |
getCommand()
Returns The The command.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getDeviceSid()
Returns The The device_sid.
|
String |
getDirection()
Returns The The direction.
|
String |
getSid()
Returns The The sid.
|
String |
getStatus()
Returns The The status.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static CommandReader |
read()
Create a CommandReader to execute read.
|
String |
toString() |
public static CommandFetcher fetch(String sid)
sid
- The sidpublic static CommandReader read()
public static CommandCreator create(String device, String command)
device
- The devicecommand
- The commandpublic static Command fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Command fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
getSid
in class SidResource
public final String getAccountSid()
public final String getDeviceSid()
public final String getCommand()
public final String getStatus()
public final String getDirection()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.