com.sola.instagram.model
Class Media.Image

java.lang.Object
  extended by com.sola.instagram.model.Media.Image
Enclosing class:
Media

public class Media.Image
extends java.lang.Object

Object for a media image with the JSON representation

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

Version:
2012-08-22
Author:
Sola Ogunsakin

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

Constructor Detail

Media.Image

public Media.Image(JSONObject obj)
            throws JSONException
Makes a new Image object out of a JSONObject

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

getUri

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

Returns:
The url link to this image

getWidth

public int getWidth()
Returns the width of this image

Returns:
The width of this image

getHeigth

public int getHeigth()
Returns the height of this image

Returns:
The height of this image

equals

public boolean equals(java.lang.Object o)
Checks if two image 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