public class Reservation extends NextGenInstanceResource<TwilioTaskRouterClient>
Task
is created whenever a Task is assigned to a Worker.
TaskRouter will provide the details of this Reservation instance subresource in the Assignment Callback
HTTP request it makes to your application server.
See the TaskRouter documentation.| Constructor and Description |
|---|
Reservation(TwilioTaskRouterClient client)
Instantiates a reservation.
|
Reservation(TwilioTaskRouterClient client,
Map<String,Object> properties)
Instantiates a reservation.
|
Reservation(TwilioTaskRouterClient client,
String workspaceSid,
String taskSid,
String reservationSid)
Instantiates a reservation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept()
Accept a reservation
|
String |
getAccountSid()
The unique ID of the
Account that owns this Reservation. |
Date |
getDateCreated()
The date and time this Reservation was created.
|
Date |
getDateUpdated()
The date and time this Reservation was last updated.
|
String |
getReservationStatus()
The current status of this Reservation.
|
String |
getSid()
The unique ID of this Reservation.
|
String |
getTaskSid()
The unique ID of the Task this Reservation was created for.
|
String |
getWorkerName()
The FriendlyName of the reserved
Worker. |
String |
getWorkerSid()
The unique ID of the reserved
Worker |
String |
getWorkspaceSid()
The unique ID of the
Workspace containing this Reservation. |
void |
reject()
Reject a reservation
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Reservation(TwilioTaskRouterClient client)
client - the clientpublic Reservation(TwilioTaskRouterClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic Reservation(TwilioTaskRouterClient client, String workspaceSid, String taskSid, String reservationSid)
client - the clientworkspaceSid - the workspace sidtaskSid - the task sidreservationSid - the reservation sidpublic void accept()
throws TwilioRestException
TwilioRestExceptionpublic void reject()
throws TwilioRestException
TwilioRestExceptionpublic String getAccountSid()
Account that owns this Reservation.public Date getDateCreated()
public Date getDateUpdated()
public String getReservationStatus()
public String getSid()
public String getTaskSid()
public String getWorkerName()
Worker.public String getWorkerSid()
WorkerCopyright © 2011 Twilio, Inc. All Rights Reserved.