Class ArticleModel

  • All Implemented Interfaces:
    IModel

    public class ArticleModel
    extends Object
    implements IModel
    ArticleModel is the model for the articles. It contains the data structure of the articles.
    • Field Detail

      • id

        public final int id
        The id field is the id of the article.
      • title

        public final String title
        The title field is the title of the article.
      • body

        public final String body
        The body field is the body of the article.
      • url

        public final String url
        The url field is the url of the article.
      • date

        public final Date date
        The date field is the date of the article.
      • source

        public final String source
        The source field is the source of the article.
    • Constructor Detail

      • ArticleModel

        public ArticleModel​(String title,
                            String body,
                            String url,
                            Date date,
                            String source)
        ArticleModel constructor.
        Parameters:
        title - the title of the article
        body - the body of the article
        url - the url of the article
        date - the date of the article
        source - the source of the article