Package com.twitter.clientlib.model
Class TweetCountsResponse
- java.lang.Object
-
- com.twitter.clientlib.model.TweetCountsResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetCountsResponse extends Object
TweetCountsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetCountsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ERRORSstatic StringSERIALIZED_NAME_META
-
Constructor Summary
Constructors Constructor Description TweetCountsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TweetCountsResponseaddDataItem(SearchCount dataItem)TweetCountsResponseaddErrorsItem(Problem errorsItem)TweetCountsResponsedata(List<SearchCount> data)booleanequals(Object o)TweetCountsResponseerrors(List<Problem> errors)static TweetCountsResponsefromJson(String jsonString)Create an instance of TweetCountsResponse given an JSON stringList<SearchCount>getData()Get dataList<Problem>getErrors()Get errorsTweetCountsResponseMetagetMeta()Get metainthashCode()TweetCountsResponsemeta(TweetCountsResponseMeta meta)voidsetData(List<SearchCount> data)voidsetErrors(List<Problem> errors)voidsetMeta(TweetCountsResponseMeta meta)StringtoJson()Convert an instance of TweetCountsResponse 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_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 TweetCountsResponse data(List<SearchCount> data)
-
addDataItem
public TweetCountsResponse addDataItem(SearchCount dataItem)
-
getData
@Nullable public List<SearchCount> getData()
Get data- Returns:
- data
-
setData
public void setData(List<SearchCount> data)
-
errors
public TweetCountsResponse errors(List<Problem> errors)
-
addErrorsItem
public TweetCountsResponse addErrorsItem(Problem errorsItem)
-
meta
public TweetCountsResponse meta(TweetCountsResponseMeta meta)
-
getMeta
@Nullable public TweetCountsResponseMeta getMeta()
Get meta- Returns:
- meta
-
setMeta
public void setMeta(TweetCountsResponseMeta 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 TweetCountsResponse
-
fromJson
public static TweetCountsResponse fromJson(String jsonString) throws IOException
Create an instance of TweetCountsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetCountsResponse
- Throws:
IOException- if the JSON string is invalid with respect to TweetCountsResponse
-
toJson
public String toJson()
Convert an instance of TweetCountsResponse to an JSON string- Returns:
- JSON string
-
-