public class Ticket
extends java.lang.Object
The ticketId attribute contains the ticket id.
If the ticket wasn't found, the invalid attribute is set.
The status of the ticket is passed in the status attribute;
0 means not completed,
1 means completed and
2 means the ticket failed (indicating there was a problem converting the file).
When the status is 1, the photo id is passed in the photoid attribute. The photo id can then be used as with the synchronous upload API.
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPLETED |
static int |
FAILED |
static int |
UNCOMPLETED |
| Constructor and Description |
|---|
Ticket() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPhotoId() |
int |
getStatus() |
java.lang.String |
getTicketId() |
boolean |
hasCompleted() |
boolean |
hasFailed() |
boolean |
isBusy() |
boolean |
isInvalid() |
void |
setInvalid(boolean invalid) |
void |
setPhotoId(java.lang.String photoId) |
void |
setStatus(int complete) |
void |
setTicketId(java.lang.String ticketId) |
public static final int UNCOMPLETED
public static final int COMPLETED
public static final int FAILED
public boolean isInvalid()
public void setInvalid(boolean invalid)
public java.lang.String getPhotoId()
public void setPhotoId(java.lang.String photoId)
public java.lang.String getTicketId()
public void setTicketId(java.lang.String ticketId)
public int getStatus()
public void setStatus(int complete)
public boolean hasCompleted()
public boolean hasFailed()
public boolean isBusy()