public class ImageAttachment extends FileAttachment
displayName, extension, forceUpload, md5, nosTokenSceneKey, path, size, url
Constructor and Description |
---|
ImageAttachment() |
ImageAttachment(java.lang.String attach) |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Get the height of an image
|
java.lang.String |
getThumbUrl()
Get the URL of an thumbnail
|
int |
getWidth()
Get the width of an image
|
boolean |
isHdImage() |
protected void |
load(JSONObject json) |
protected void |
save(JSONObject json) |
void |
setHeight(int height)
Set the height of an image
|
void |
setWidth(int width)
Set the width of an image
|
protected NimStorageType |
storageType() |
getDisplayName, getExpire, getExtension, getFileName, getMd5, getNosTokenSceneKey, getPath, getPathForSave, getSize, getThumbPath, getThumbPathForSave, getUrl, isForceUpload, setDisplayName, setExtension, setForceUpload, setMd5, setNosTokenSceneKey, setPath, setSize, setUrl, toJson
public ImageAttachment()
public ImageAttachment(java.lang.String attach)
public int getWidth()
public void setWidth(int width)
width
- The width of an imagepublic int getHeight()
public void setHeight(int height)
height
- The height of an imagepublic java.lang.String getThumbUrl()
public boolean isHdImage()
protected NimStorageType storageType()
storageType
in class FileAttachment
protected void save(JSONObject json)
save
in class FileAttachment
protected void load(JSONObject json)
load
in class FileAttachment