Constructor and Description |
---|
Media.Image(JSONObject obj)
Makes a new Image object out of a JSONObject
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Checks if two image objects are equal
|
int |
getHeigth()
Returns the height of this image
|
String |
getUri()
Returns the url link to this image
|
int |
getWidth()
Returns the width of this image
|
protected void |
setHeigth(int heigth)
Sets this image's height
|
protected void |
setUri(String uri)
Sets this image's url
|
protected void |
setWidth(int width)
Sets this image's width
|
public Media.Image(JSONObject obj) throws JSONException
obj
- json object used to create this imageJSONException
public String getUri()
protected void setUri(String uri)
url
- url for this imagepublic int getWidth()
protected void setWidth(int width)
width
- width of this imagepublic int getHeigth()
protected void setHeigth(int heigth)
height
- height of this imageCopyright © 2013. All Rights Reserved.