Package com.twitter.clientlib.model
Class FullTextEntities
- java.lang.Object
-
- com.twitter.clientlib.model.FullTextEntities
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class FullTextEntities extends Object
FullTextEntities
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFullTextEntities.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CASHTAGSstatic StringSERIALIZED_NAME_HASHTAGSstatic StringSERIALIZED_NAME_MENTIONSstatic StringSERIALIZED_NAME_URLS
-
Constructor Summary
Constructors Constructor Description FullTextEntities()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_URLS
public static final String SERIALIZED_NAME_URLS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HASHTAGS
public static final String SERIALIZED_NAME_HASHTAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MENTIONS
public static final String SERIALIZED_NAME_MENTIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CASHTAGS
public static final String SERIALIZED_NAME_CASHTAGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
urls
public FullTextEntities urls(List<UrlEntity> urls)
-
addUrlsItem
public FullTextEntities addUrlsItem(UrlEntity urlsItem)
-
hashtags
public FullTextEntities hashtags(List<HashtagEntity> hashtags)
-
addHashtagsItem
public FullTextEntities addHashtagsItem(HashtagEntity hashtagsItem)
-
getHashtags
@Nullable public List<HashtagEntity> getHashtags()
Get hashtags- Returns:
- hashtags
-
setHashtags
public void setHashtags(List<HashtagEntity> hashtags)
-
mentions
public FullTextEntities mentions(List<MentionEntity> mentions)
-
addMentionsItem
public FullTextEntities addMentionsItem(MentionEntity mentionsItem)
-
getMentions
@Nullable public List<MentionEntity> getMentions()
Get mentions- Returns:
- mentions
-
setMentions
public void setMentions(List<MentionEntity> mentions)
-
cashtags
public FullTextEntities cashtags(List<CashtagEntity> cashtags)
-
addCashtagsItem
public FullTextEntities addCashtagsItem(CashtagEntity cashtagsItem)
-
getCashtags
@Nullable public List<CashtagEntity> getCashtags()
Get cashtags- Returns:
- cashtags
-
setCashtags
public void setCashtags(List<CashtagEntity> cashtags)
-
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 FullTextEntities
-
fromJson
public static FullTextEntities fromJson(String jsonString) throws IOException
Create an instance of FullTextEntities given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FullTextEntities
- Throws:
IOException- if the JSON string is invalid with respect to FullTextEntities
-
toJson
public String toJson()
Convert an instance of FullTextEntities to an JSON string- Returns:
- JSON string
-
-