public class NewsEntity
The main object for articles.
class ArticleEntity| Constructor and Description |
|---|
NewsEntity(java.lang.String status,
int totalResult,
java.util.List<xyz.thegrapevine.news.entities.ArticleEntity> articles)
The main object for articles.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
The API/endpoint status
|
int |
component2()
Amount of results aggregated
|
java.util.List<xyz.thegrapevine.news.entities.ArticleEntity> |
component3()
A list of article objects.
|
NewsEntity |
copy(java.lang.String status,
int totalResult,
java.util.List<xyz.thegrapevine.news.entities.ArticleEntity> articles)
The main object for articles.
|
boolean |
equals(java.lang.Object p) |
java.util.List<xyz.thegrapevine.news.entities.ArticleEntity> |
getArticles()
A list of article objects.
|
java.lang.String |
getStatus()
The API/endpoint status
|
int |
getTotalResult()
Amount of results aggregated
|
int |
hashCode() |
java.lang.String |
toString() |
public NewsEntity(@NotNull
java.lang.String status,
int totalResult,
@NotNull
java.util.List<xyz.thegrapevine.news.entities.ArticleEntity> articles)
The main object for articles.
status - The API/endpoint statustotalResult - Amount of results aggregatedarticles - A list of article objects.class ArticleEntity@NotNull public java.lang.String getStatus()
The API/endpoint status
public int getTotalResult()
Amount of results aggregated
@NotNull public java.util.List<xyz.thegrapevine.news.entities.ArticleEntity> getArticles()
A list of article objects.
@NotNull public java.lang.String component1()
The API/endpoint status
public int component2()
Amount of results aggregated
@NotNull public java.util.List<xyz.thegrapevine.news.entities.ArticleEntity> component3()
A list of article objects.
@NotNull public NewsEntity copy(@NotNull java.lang.String status, int totalResult, @NotNull java.util.List<xyz.thegrapevine.news.entities.ArticleEntity> articles)
The main object for articles.
status - The API/endpoint statustotalResult - Amount of results aggregatedarticles - A list of article objects.class ArticleEntity@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)