public class VideoMedia.Video extends Object
{ "url":"", "width":0, "height":0 }
Constructor and Description |
---|
VideoMedia.Video(JSONObject obj)
Makes a new Video object out of a JSONObject
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Checks if two video objects are equal
|
int |
getHeigth()
Returns the height of this video
|
String |
getUri()
Returns the url link to this video
|
int |
getWidth()
Returns the width of this video
|
protected void |
setHeigth(int heigth)
Sets this video's height
|
protected void |
setUri(String uri)
Sets this video's url
|
protected void |
setWidth(int width)
Sets this video's width
|
public VideoMedia.Video(JSONObject obj) throws JSONException
obj
- json object used to create this videoJSONException
public String getUri()
protected void setUri(String uri)
url
- url for this videopublic int getWidth()
protected void setWidth(int width)
width
- width of this videopublic int getHeigth()
protected void setHeigth(int heigth)
height
- height of this videoCopyright © 2013. All Rights Reserved.