Skip to content

Instantly share code, notes, and snippets.

@ani03sha
Created August 9, 2018 18:35
Show Gist options
  • Save ani03sha/74186d22ed119c3ddc6670a9a6f5dc72 to your computer and use it in GitHub Desktop.
Save ani03sha/74186d22ed119c3ddc6670a9a6f5dc72 to your computer and use it in GitHub Desktop.
package org.redquark.retrofit.xmlparser.model;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
/**
* @author Anirudh Sharma
*
* The 'Article' class represents one single article and only stores the title, link and description of it.
*/
@Root(name = "item", strict = false)
public class Article {
@Element(name = "title")
private String title;
@Element(name = "link")
private String link;
@Element(name = "description")
private String description;
/**
* @return the title
*/
public String getTitle() {
return title;
}
/**
* @param title the title to set
*/
public void setTitle(String title) {
this.title = title;
}
/**
* @return the link
*/
public String getLink() {
return link;
}
/**
* @param link the link to set
*/
public void setLink(String link) {
this.link = link;
}
/**
* @return the description
*/
public String getDescription() {
return description;
}
/**
* @param description the description to set
*/
public void setDescription(String description) {
this.description = description;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment