com.github.fedy2.weather.data.Rss Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yahoo-weather-java-api Show documentation
Show all versions of yahoo-weather-java-api Show documentation
A Java library for the yahoo weather RSS feed service
/**
*
*/
package com.github.fedy2.weather.data;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* @author "Federico De Faveri [email protected]"
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="query")
@XmlSeeAlso({Channel.class})
public class Rss {
@XmlElement
private Wrapper results;
public Rss()
{}
/**
* Returns the channel.
* @return the channel
*/
public List getChannels() {
return results.getItems();
}
}