com.github.fedy2.weather.data
Class Image

java.lang.Object
  extended by com.github.fedy2.weather.data.Image

public class Image
extends Object

Author:
"Federico De Faveri defaveri@gmail.com"

Constructor Summary
Image()
           
Image(String title, String link, String url, int width, int height)
           
 
Method Summary
 int getHeight()
          Returns the height of the image, in pixels.
 String getLink()
          Returns the URL of Yahoo! Weather.
 String getTitle()
          Return the title of the image, for example "Yahoo! Weather".
 String getUrl()
          Returns the URL of the image.
 int getWidth()
          Returns the width of the image, in pixels.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image()

Image

public Image(String title,
             String link,
             String url,
             int width,
             int height)
Parameters:
title -
link -
url -
width -
height -
Method Detail

getTitle

public String getTitle()
Return the title of the image, for example "Yahoo! Weather".

Returns:
the title

getLink

public String getLink()
Returns the URL of Yahoo! Weather.

Returns:
the link

getUrl

public String getUrl()
Returns the URL of the image.

Returns:
the url

getWidth

public int getWidth()
Returns the width of the image, in pixels.

Returns:
the width

getHeight

public int getHeight()
Returns the height of the image, in pixels.

Returns:
the height

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.