Package com.longbridge.content
Class NewsItem
- java.lang.Object
-
- com.longbridge.content.NewsItem
-
public class NewsItem extends Object
News item
-
-
Constructor Summary
Constructors Constructor Description NewsItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCommentsCount()Returns the comments count.StringgetDescription()Returns the description.StringgetId()Returns the news ID.intgetLikesCount()Returns the likes count.OffsetDateTimegetPublishedAt()Returns the published time.intgetSharesCount()Returns the shares count.StringgetTitle()Returns the title.StringgetUrl()Returns the URL.StringtoString()
-
-
-
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
-
-