Package com.twitter.clientlib.model
Class Expansions
- java.lang.Object
-
- com.twitter.clientlib.model.Expansions
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Expansions extends Object
Expansions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpansions.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MEDIAstatic StringSERIALIZED_NAME_PLACESstatic StringSERIALIZED_NAME_POLLSstatic StringSERIALIZED_NAME_TWEETSstatic StringSERIALIZED_NAME_USERS
-
Constructor Summary
Constructors Constructor Description Expansions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpansionsaddMediaItem(Media mediaItem)ExpansionsaddPlacesItem(Place placesItem)ExpansionsaddPollsItem(Poll pollsItem)ExpansionsaddTweetsItem(Tweet tweetsItem)ExpansionsaddUsersItem(User usersItem)booleanequals(Object o)static ExpansionsfromJson(String jsonString)Create an instance of Expansions given an JSON stringList<Media>getMedia()Get mediaList<Place>getPlaces()Get placesList<Poll>getPolls()Get pollsList<Tweet>getTweets()Get tweetsList<User>getUsers()Get usersinthashCode()Expansionsmedia(List<Media> media)Expansionsplaces(List<Place> places)Expansionspolls(List<Poll> polls)voidsetMedia(List<Media> media)voidsetPlaces(List<Place> places)voidsetPolls(List<Poll> polls)voidsetTweets(List<Tweet> tweets)voidsetUsers(List<User> users)StringtoJson()Convert an instance of Expansions to an JSON stringStringtoString()Expansionstweets(List<Tweet> tweets)Expansionsusers(List<User> users)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_USERS
public static final String SERIALIZED_NAME_USERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TWEETS
public static final String SERIALIZED_NAME_TWEETS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLACES
public static final String SERIALIZED_NAME_PLACES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MEDIA
public static final String SERIALIZED_NAME_MEDIA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POLLS
public static final String SERIALIZED_NAME_POLLS
- See Also:
- Constant Field Values
-
-
Method Detail
-
users
public Expansions users(List<User> users)
-
addUsersItem
public Expansions addUsersItem(User usersItem)
-
tweets
public Expansions tweets(List<Tweet> tweets)
-
addTweetsItem
public Expansions addTweetsItem(Tweet tweetsItem)
-
places
public Expansions places(List<Place> places)
-
addPlacesItem
public Expansions addPlacesItem(Place placesItem)
-
media
public Expansions media(List<Media> media)
-
addMediaItem
public Expansions addMediaItem(Media mediaItem)
-
polls
public Expansions polls(List<Poll> polls)
-
addPollsItem
public Expansions addPollsItem(Poll pollsItem)
-
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 Expansions
-
fromJson
public static Expansions fromJson(String jsonString) throws IOException
Create an instance of Expansions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Expansions
- Throws:
IOException- if the JSON string is invalid with respect to Expansions
-
toJson
public String toJson()
Convert an instance of Expansions to an JSON string- Returns:
- JSON string
-
-