com.aetrion.flickr.photos.upload
Class Ticket

java.lang.Object
  extended by com.aetrion.flickr.photos.upload.Ticket

public class Ticket
extends java.lang.Object

Photo upload ticket.

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.

Version:
$Id: Ticket.java,v 1.2 2007/11/02 21:46:52 x-mago Exp $
Author:
till (Till Krech) extranoise:flickr

Field Summary
static int COMPLETED
           
static int FAILED
           
static int UNCOMPLETED
           
 
Constructor Summary
Ticket()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNCOMPLETED

public static final int UNCOMPLETED
See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values
Constructor Detail

Ticket

public Ticket()
Method Detail

isInvalid

public boolean isInvalid()

setInvalid

public void setInvalid(boolean invalid)

getPhotoId

public java.lang.String getPhotoId()

setPhotoId

public void setPhotoId(java.lang.String photoId)

getTicketId

public java.lang.String getTicketId()

setTicketId

public void setTicketId(java.lang.String ticketId)

getStatus

public int getStatus()

setStatus

public void setStatus(int complete)

hasCompleted

public boolean hasCompleted()

hasFailed

public boolean hasFailed()

isBusy

public boolean isBusy()


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.