com.sola.instagram.model
Class VideoMedia.Video

java.lang.Object
  extended by com.sola.instagram.model.VideoMedia.Video
Enclosing class:
VideoMedia

public class VideoMedia.Video
extends java.lang.Object

Object for a media video with the JSON representation

                {
                        "url":"",
                        "width":0,
                        "height":0
                }
 

Version:
2013-08-17
Author:
Sola Ogunsakin

Constructor Summary
VideoMedia.Video(JSONObject obj)
          Makes a new Video object out of a JSONObject
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks if two video objects are equal
 int getHeigth()
          Returns the height of this video
 java.lang.String getUri()
          Returns the url link to this video
 int getWidth()
          Returns the width of this video
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoMedia.Video

public VideoMedia.Video(JSONObject obj)
                 throws JSONException
Makes a new Video object out of a JSONObject

Parameters:
obj - json object used to create this video
Throws:
JSONException
Method Detail

getUri

public java.lang.String getUri()
Returns the url link to this video

Returns:
The url link to this video

getWidth

public int getWidth()
Returns the width of this video

Returns:
The width of this video

getHeigth

public int getHeigth()
Returns the height of this video

Returns:
The height of this video

equals

public boolean equals(java.lang.Object o)
Checks if two video objects are equal

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to be compared
Returns:
True of the two objects are equal, false otherwise