public class QBAttachment
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUDIO_TYPE
Audio attachment type
|
static java.lang.String |
CONTENT_TYPE_KEY |
static java.lang.String |
DATA |
static java.lang.String |
DURATION_KEY |
static java.lang.String |
HEIGHT_KEY |
static java.lang.String |
ID_KEY |
static java.lang.String |
IMAGE_TYPE
Image attachment type
|
static java.lang.String |
LOCATION_TYPE
Location attachment type
|
static java.lang.String |
NAME_KEY |
static java.lang.String |
PHOTO_TYPE
Deprecated.
As of release 3.3.2, use
IMAGE_TYPE |
static java.lang.String |
SIZE_KEY |
static java.lang.String |
TYPE_KEY |
static java.lang.String |
URL_KEY |
static java.lang.String |
VIDEO_TYPE
Video attachment type
|
static java.lang.String |
WIDTH_KEY |
Constructor and Description |
---|
QBAttachment(java.lang.String type)
Constructs a new QBAttachment object, with type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getContentType() |
java.lang.String |
getData()
Gets the data.
|
int |
getDuration()
Gets the duration
|
int |
getHeight()
Gets the height
|
java.lang.String |
getId()
Gets the ID.
|
java.lang.String |
getName() |
double |
getSize() |
java.lang.String |
getType()
Gets the type.
|
java.lang.String |
getUrl()
Gets the url.
|
int |
getWidth()
Gets the width
|
int |
hashCode() |
void |
setContentType(java.lang.String contentType) |
void |
setData(java.lang.String data)
Sets the data.
|
void |
setDuration(int duration)
Sets the duration.
|
void |
setHeight(int height)
Sets the height.
|
void |
setId(java.lang.String id)
Sets the ID.
|
void |
setName(java.lang.String name) |
void |
setSize(double size) |
void |
setType(java.lang.String type)
Sets the type.
|
void |
setUrl(java.lang.String url)
Sets the url.
|
void |
setWidth(int width)
Sets the width.
|
java.lang.String |
toString() |
public static final java.lang.String ID_KEY
public static final java.lang.String TYPE_KEY
public static final java.lang.String URL_KEY
public static final java.lang.String CONTENT_TYPE_KEY
public static final java.lang.String SIZE_KEY
public static final java.lang.String NAME_KEY
public static final java.lang.String DATA
public static final java.lang.String WIDTH_KEY
public static final java.lang.String HEIGHT_KEY
public static final java.lang.String DURATION_KEY
public static final java.lang.String AUDIO_TYPE
public static final java.lang.String VIDEO_TYPE
@Deprecated public static final java.lang.String PHOTO_TYPE
IMAGE_TYPE
public static final java.lang.String IMAGE_TYPE
public static final java.lang.String LOCATION_TYPE
public QBAttachment(java.lang.String type)
public java.lang.String getName()
public void setName(java.lang.String name)
public double getSize()
public void setSize(double size)
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
public java.lang.String getType()
public void setType(java.lang.String type)
type
- The type to set. Type can be one of the
QBAttachment.AUDIO_TYPE, QBAttachment.VIDEO_TYPE, QBAttachment.PHOTO_TYPE or custom.public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- The url of a file to set.public java.lang.String getId()
public void setId(java.lang.String id)
id
- The ID of a file to set.public java.lang.String getData()
public void setData(java.lang.String data)
data
- The data of a file to set.public int getHeight()
public void setHeight(int height)
height
- The height to set.public int getWidth()
public void setWidth(int width)
width
- The width to set.public int getDuration()
public void setDuration(int duration)
duration
- The duration to set.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object