AttachItem

public class AttachItem implements IJSONStore

Class describes attach item

Fields

JSON_DESCRIPTION_KEY

protected static final String JSON_DESCRIPTION_KEY

JSON_DISPLAY_NAME_KEY

protected static final String JSON_DISPLAY_NAME_KEY

JSON_ID_KEY

protected static final String JSON_ID_KEY

JSON_MIME_KEY

protected static final String JSON_MIME_KEY

JSON_SIZE_KEY

protected static final String JSON_SIZE_KEY

mAttachId

String mAttachId

mDescription

String mDescription

mDisplayName

String mDisplayName

mMimetype

String mMimetype

mSize

int mSize

Constructors

AttachItem

public AttachItem()

AttachItem

public AttachItem(String attachId, String displayName, String mimetype, String description)

AttachItem

public AttachItem(String attachId, String displayName, String mimetype, String description, int size)

Methods

equals

public boolean equals(Object o)

fromJSON

public void fromJSON(JSONObject jsonObject)

getAttachId

public String getAttachId()

getContentValues

public ContentValues getContentValues(boolean withAttachId)

getDescription

public String getDescription()

getDisplayName

public String getDisplayName()

getMimetype

public String getMimetype()

getSize

public int getSize()

hashCode

public int hashCode()

setAttachId

public void setAttachId(String attachId)

setDescription

public void setDescription(String description)

setDisplayName

public void setDisplayName(String displayName)

setMimetype

public void setMimetype(String mimetype)

setSize

public void setSize(int size)

toJSON

public JSONObject toJSON()