Package com.twitter.clientlib.model
Class TweetSearchResponse
- java.lang.Object
-
- com.twitter.clientlib.model.TweetSearchResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetSearchResponse extends Object
TweetSearchResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetSearchResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ERRORSstatic StringSERIALIZED_NAME_INCLUDESstatic StringSERIALIZED_NAME_META
-
Constructor Summary
Constructors Constructor Description TweetSearchResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TweetSearchResponseaddDataItem(Tweet dataItem)TweetSearchResponseaddErrorsItem(Problem errorsItem)TweetSearchResponsedata(List<Tweet> data)booleanequals(Object o)TweetSearchResponseerrors(List<Problem> errors)static TweetSearchResponsefromJson(String jsonString)Create an instance of TweetSearchResponse given an JSON stringList<Tweet>getData()Get dataList<Problem>getErrors()Get errorsExpansionsgetIncludes()Get includesTweetSearchResponseMetagetMeta()Get metainthashCode()TweetSearchResponseincludes(Expansions includes)TweetSearchResponsemeta(TweetSearchResponseMeta meta)voidsetData(List<Tweet> data)voidsetErrors(List<Problem> errors)voidsetIncludes(Expansions includes)voidsetMeta(TweetSearchResponseMeta meta)StringtoJson()Convert an instance of TweetSearchResponse 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_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INCLUDES
public static final String SERIALIZED_NAME_INCLUDES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_META
public static final String SERIALIZED_NAME_META
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public TweetSearchResponse data(List<Tweet> data)
-
addDataItem
public TweetSearchResponse addDataItem(Tweet dataItem)
-
includes
public TweetSearchResponse includes(Expansions includes)
-
getIncludes
@Nullable public Expansions getIncludes()
Get includes- Returns:
- includes
-
setIncludes
public void setIncludes(Expansions includes)
-
errors
public TweetSearchResponse errors(List<Problem> errors)
-
addErrorsItem
public TweetSearchResponse addErrorsItem(Problem errorsItem)
-
meta
public TweetSearchResponse meta(TweetSearchResponseMeta meta)
-
getMeta
@Nullable public TweetSearchResponseMeta getMeta()
Get meta- Returns:
- meta
-
setMeta
public void setMeta(TweetSearchResponseMeta meta)
-
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 TweetSearchResponse
-
fromJson
public static TweetSearchResponse fromJson(String jsonString) throws IOException
Create an instance of TweetSearchResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetSearchResponse
- Throws:
IOException- if the JSON string is invalid with respect to TweetSearchResponse
-
toJson
public String toJson()
Convert an instance of TweetSearchResponse to an JSON string- Returns:
- JSON string
-
-