Package com.twitter.clientlib.model
Class GenericTweetsTimelineResponseMeta
- java.lang.Object
-
- com.twitter.clientlib.model.GenericTweetsTimelineResponseMeta
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class GenericTweetsTimelineResponseMeta extends Object
GenericTweetsTimelineResponseMeta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenericTweetsTimelineResponseMeta.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NEWEST_IDstatic StringSERIALIZED_NAME_NEXT_TOKENstatic StringSERIALIZED_NAME_OLDEST_IDstatic StringSERIALIZED_NAME_PREVIOUS_TOKENstatic StringSERIALIZED_NAME_RESULT_COUNT
-
Constructor Summary
Constructors Constructor Description GenericTweetsTimelineResponseMeta()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static GenericTweetsTimelineResponseMetafromJson(String jsonString)Create an instance of GenericTweetsTimelineResponseMeta given an JSON stringStringgetNewestId()Unique identifier of this Tweet.StringgetNextToken()The next tokenStringgetOldestId()Unique identifier of this Tweet.StringgetPreviousToken()The previous tokenIntegergetResultCount()Number of Tweets in result setinthashCode()GenericTweetsTimelineResponseMetanewestId(String newestId)GenericTweetsTimelineResponseMetanextToken(String nextToken)GenericTweetsTimelineResponseMetaoldestId(String oldestId)GenericTweetsTimelineResponseMetapreviousToken(String previousToken)GenericTweetsTimelineResponseMetaresultCount(Integer resultCount)voidsetNewestId(String newestId)voidsetNextToken(String nextToken)voidsetOldestId(String oldestId)voidsetPreviousToken(String previousToken)voidsetResultCount(Integer resultCount)StringtoJson()Convert an instance of GenericTweetsTimelineResponseMeta to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NEWEST_ID
public static final String SERIALIZED_NAME_NEWEST_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OLDEST_ID
public static final String SERIALIZED_NAME_OLDEST_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PREVIOUS_TOKEN
public static final String SERIALIZED_NAME_PREVIOUS_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEXT_TOKEN
public static final String SERIALIZED_NAME_NEXT_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULT_COUNT
public static final String SERIALIZED_NAME_RESULT_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
newestId
public GenericTweetsTimelineResponseMeta newestId(String newestId)
-
getNewestId
@Nullable public String getNewestId()
Unique identifier of this Tweet. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.- Returns:
- newestId
-
setNewestId
public void setNewestId(String newestId)
-
oldestId
public GenericTweetsTimelineResponseMeta oldestId(String oldestId)
-
getOldestId
@Nullable public String getOldestId()
Unique identifier of this Tweet. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.- Returns:
- oldestId
-
setOldestId
public void setOldestId(String oldestId)
-
previousToken
public GenericTweetsTimelineResponseMeta previousToken(String previousToken)
-
getPreviousToken
@Nullable public String getPreviousToken()
The previous token- Returns:
- previousToken
-
setPreviousToken
public void setPreviousToken(String previousToken)
-
nextToken
public GenericTweetsTimelineResponseMeta nextToken(String nextToken)
-
setNextToken
public void setNextToken(String nextToken)
-
resultCount
public GenericTweetsTimelineResponseMeta resultCount(Integer resultCount)
-
getResultCount
@Nullable public Integer getResultCount()
Number of Tweets in result set- Returns:
- resultCount
-
setResultCount
public void setResultCount(Integer resultCount)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to GenericTweetsTimelineResponseMeta
-
fromJson
public static GenericTweetsTimelineResponseMeta fromJson(String jsonString) throws IOException
Create an instance of GenericTweetsTimelineResponseMeta given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GenericTweetsTimelineResponseMeta
- Throws:
IOException- if the JSON string is invalid with respect to GenericTweetsTimelineResponseMeta
-
toJson
public String toJson()
Convert an instance of GenericTweetsTimelineResponseMeta to an JSON string- Returns:
- JSON string
-
-