Package com.twitter.clientlib.model
Class CashtagFields
- java.lang.Object
-
- com.twitter.clientlib.model.CashtagFields
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CashtagFields extends Object
Represent the portion of text recognized as a Cashtag, and its start and end position within the text.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCashtagFields.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_TAG
-
Constructor Summary
Constructors Constructor Description CashtagFields()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CashtagFieldsfromJson(String jsonString)Create an instance of CashtagFields given an JSON stringStringgetTag()Get taginthashCode()voidsetTag(String tag)CashtagFieldstag(String tag)StringtoJson()Convert an instance of CashtagFields to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
tag
public CashtagFields tag(String tag)
-
setTag
public void setTag(String tag)
-
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 CashtagFields
-
fromJson
public static CashtagFields fromJson(String jsonString) throws IOException
Create an instance of CashtagFields given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CashtagFields
- Throws:
IOException- if the JSON string is invalid with respect to CashtagFields
-
toJson
public String toJson()
Convert an instance of CashtagFields to an JSON string- Returns:
- JSON string
-
-