Package com.twitter.clientlib.model
Class TweetSearchResponseMeta
- java.lang.Object
-
- com.twitter.clientlib.model.TweetSearchResponseMeta
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetSearchResponseMeta extends Object
TweetSearchResponseMeta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetSearchResponseMeta.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_RESULT_COUNT
-
Constructor Summary
Constructors Constructor Description TweetSearchResponseMeta()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TweetSearchResponseMetafromJson(String jsonString)Create an instance of TweetSearchResponseMeta given an JSON stringStringgetNewestId()Most recent Tweet Id returned by search queryStringgetNextToken()This value is used to get the next 'page' of results by providing it to the next_token parameter.StringgetOldestId()Oldest Tweet Id returned by search queryIntegergetResultCount()Number of search query resultsinthashCode()TweetSearchResponseMetanewestId(String newestId)TweetSearchResponseMetanextToken(String nextToken)TweetSearchResponseMetaoldestId(String oldestId)TweetSearchResponseMetaresultCount(Integer resultCount)voidsetNewestId(String newestId)voidsetNextToken(String nextToken)voidsetOldestId(String oldestId)voidsetResultCount(Integer resultCount)StringtoJson()Convert an instance of TweetSearchResponseMeta 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_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 TweetSearchResponseMeta newestId(String newestId)
-
getNewestId
@Nullable public String getNewestId()
Most recent Tweet Id returned by search query- Returns:
- newestId
-
setNewestId
public void setNewestId(String newestId)
-
oldestId
public TweetSearchResponseMeta oldestId(String oldestId)
-
getOldestId
@Nullable public String getOldestId()
Oldest Tweet Id returned by search query- Returns:
- oldestId
-
setOldestId
public void setOldestId(String oldestId)
-
nextToken
public TweetSearchResponseMeta nextToken(String nextToken)
-
getNextToken
@Nullable public String getNextToken()
This value is used to get the next 'page' of results by providing it to the next_token parameter.- Returns:
- nextToken
-
setNextToken
public void setNextToken(String nextToken)
-
resultCount
public TweetSearchResponseMeta resultCount(Integer resultCount)
-
getResultCount
@Nullable public Integer getResultCount()
Number of search query results- 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 TweetSearchResponseMeta
-
fromJson
public static TweetSearchResponseMeta fromJson(String jsonString) throws IOException
Create an instance of TweetSearchResponseMeta given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetSearchResponseMeta
- Throws:
IOException- if the JSON string is invalid with respect to TweetSearchResponseMeta
-
toJson
public String toJson()
Convert an instance of TweetSearchResponseMeta to an JSON string- Returns:
- JSON string
-
-