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 class
Expansions.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_MEDIA
static String
SERIALIZED_NAME_PLACES
static String
SERIALIZED_NAME_POLLS
static String
SERIALIZED_NAME_TOPICS
static String
SERIALIZED_NAME_TWEETS
static String
SERIALIZED_NAME_USERS
-
Constructor Summary
Constructors Constructor Description Expansions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Expansions
addMediaItem(Media mediaItem)
Expansions
addPlacesItem(Place placesItem)
Expansions
addPollsItem(Poll pollsItem)
Expansions
addTopicsItem(Topic topicsItem)
Expansions
addTweetsItem(Tweet tweetsItem)
Expansions
addUsersItem(User usersItem)
boolean
equals(Object o)
static Expansions
fromJson(String jsonString)
Create an instance of Expansions given an JSON stringList<Media>
getMedia()
Get mediaList<Place>
getPlaces()
Get placesList<Poll>
getPolls()
Get pollsList<Topic>
getTopics()
Get topicsList<Tweet>
getTweets()
Get tweetsList<User>
getUsers()
Get usersint
hashCode()
Expansions
media(List<Media> media)
Expansions
places(List<Place> places)
Expansions
polls(List<Poll> polls)
void
setMedia(List<Media> media)
void
setPlaces(List<Place> places)
void
setPolls(List<Poll> polls)
void
setTopics(List<Topic> topics)
void
setTweets(List<Tweet> tweets)
void
setUsers(List<User> users)
String
toJson()
Convert an instance of Expansions to an JSON stringExpansions
topics(List<Topic> topics)
String
toString()
Expansions
tweets(List<Tweet> tweets)
Expansions
users(List<User> users)
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_MEDIA
public static final String SERIALIZED_NAME_MEDIA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLACES
public static final String SERIALIZED_NAME_PLACES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POLLS
public static final String SERIALIZED_NAME_POLLS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOPICS
public static final String SERIALIZED_NAME_TOPICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TWEETS
public static final String SERIALIZED_NAME_TWEETS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USERS
public static final String SERIALIZED_NAME_USERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
media
public Expansions media(List<Media> media)
-
addMediaItem
public Expansions addMediaItem(Media mediaItem)
-
places
public Expansions places(List<Place> places)
-
addPlacesItem
public Expansions addPlacesItem(Place placesItem)
-
polls
public Expansions polls(List<Poll> polls)
-
addPollsItem
public Expansions addPollsItem(Poll pollsItem)
-
topics
public Expansions topics(List<Topic> topics)
-
addTopicsItem
public Expansions addTopicsItem(Topic topicsItem)
-
tweets
public Expansions tweets(List<Tweet> tweets)
-
addTweetsItem
public Expansions addTweetsItem(Tweet tweetsItem)
-
users
public Expansions users(List<User> users)
-
addUsersItem
public Expansions addUsersItem(User usersItem)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
Validates 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
-
-