Back to project page school-rss.
The source code is released under:
Apache License
If you think the Android project school-rss listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.elegion.rssreader; /*from w ww . j a v a 2 s . c om*/ import org.simpleframework.xml.Attribute; import org.simpleframework.xml.Element; import org.simpleframework.xml.ElementList; import org.simpleframework.xml.Root; import java.util.List; /** * @author artyom on 10/09/14. */ @Root(name = "rss") public class NewsWrapper { @Attribute(name = "version") private String mVersion; @Element(name = "channel") private Channel mChannel; public List<NewsItem> getNews() { return mChannel.getNews(); } @Root(name = "channel") public static class Channel { @ElementList(name = "item", inline = true) private List<NewsItem> mNews; public List<NewsItem> getNews() { return mNews; } } }