Class NewsItem


  • public class NewsItem
    extends Object
    News item
    • Constructor Detail

      • NewsItem

        public NewsItem()
    • Method Detail

      • getId

        public String getId()
        Returns the news ID.
        Returns:
        the news ID
      • getTitle

        public String getTitle()
        Returns the title.
        Returns:
        the title
      • getDescription

        public String getDescription()
        Returns the description.
        Returns:
        the description
      • getUrl

        public String getUrl()
        Returns the URL.
        Returns:
        the URL
      • getPublishedAt

        public OffsetDateTime getPublishedAt()
        Returns the published time.
        Returns:
        the published time
      • getCommentsCount

        public int getCommentsCount()
        Returns the comments count.
        Returns:
        the comments count
      • getLikesCount

        public int getLikesCount()
        Returns the likes count.
        Returns:
        the likes count
      • getSharesCount

        public int getSharesCount()
        Returns the shares count.
        Returns:
        the shares count