com.github.fedy2.weather.data
Class Condition

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

public class Condition
extends Object

Weather conditions.

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

Constructor Summary
Condition()
           
Condition(String text, int code, int temp, Date date)
           
 
Method Summary
 int getCode()
          Returns the condition code for this forecast.
 Date getDate()
          Returns the current date and time for which this forecast applies.
 int getTemp()
          Returns the current temperature, in the units specified by the units field of Channel class.
 String getText()
          Returns a textual description of conditions, for example, "Partly Cloudy"
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

public Condition()

Condition

public Condition(String text,
                 int code,
                 int temp,
                 Date date)
Parameters:
text -
code -
temp -
date -
Method Detail

getText

public String getText()
Returns a textual description of conditions, for example, "Partly Cloudy"

Returns:
the text

getCode

public int getCode()
Returns the condition code for this forecast.

Returns:
the code

getTemp

public int getTemp()
Returns the current temperature, in the units specified by the units field of Channel class.

Returns:
the temp

getDate

public Date getDate()
Returns the current date and time for which this forecast applies.

Returns:
the date

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.