Skip to content

Instantly share code, notes, and snippets.

@shaheenkdr
Created January 8, 2016 16:02
Show Gist options
  • Save shaheenkdr/2377917b5203bb90a6f1 to your computer and use it in GitHub Desktop.
Save shaheenkdr/2377917b5203bb90a6f1 to your computer and use it in GitHub Desktop.
-----------------------------------com.example.Aggregations.java-----------------------------------
package com.example;
import javax.annotation.Generated;
@Generated("org.jsonschema2pojo")
public class Aggregations {
}
-----------------------------------com.example.MainPojo.java-----------------------------------
package com.example;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class MainPojo {
@SerializedName("readme_0")
@Expose
private String readme0;
@SerializedName("readme_1")
@Expose
private String readme1;
@SerializedName("readme_2")
@Expose
private String readme2;
@SerializedName("readme_3")
@Expose
private String readme3;
@SerializedName("search_metadata")
@Expose
private SearchMetadata searchMetadata;
@SerializedName("statuses")
@Expose
private List<Status> statuses = new ArrayList<Status>();
@SerializedName("aggregations")
@Expose
private Aggregations aggregations;
/**
*
* @return
* The readme0
*/
public String getReadme0() {
return readme0;
}
/**
*
* @param readme0
* The readme_0
*/
public void setReadme0(String readme0) {
this.readme0 = readme0;
}
/**
*
* @return
* The readme1
*/
public String getReadme1() {
return readme1;
}
/**
*
* @param readme1
* The readme_1
*/
public void setReadme1(String readme1) {
this.readme1 = readme1;
}
/**
*
* @return
* The readme2
*/
public String getReadme2() {
return readme2;
}
/**
*
* @param readme2
* The readme_2
*/
public void setReadme2(String readme2) {
this.readme2 = readme2;
}
/**
*
* @return
* The readme3
*/
public String getReadme3() {
return readme3;
}
/**
*
* @param readme3
* The readme_3
*/
public void setReadme3(String readme3) {
this.readme3 = readme3;
}
/**
*
* @return
* The searchMetadata
*/
public SearchMetadata getSearchMetadata() {
return searchMetadata;
}
/**
*
* @param searchMetadata
* The search_metadata
*/
public void setSearchMetadata(SearchMetadata searchMetadata) {
this.searchMetadata = searchMetadata;
}
/**
*
* @return
* The statuses
*/
public List<Status> getStatuses() {
return statuses;
}
/**
*
* @param statuses
* The statuses
*/
public void setStatuses(List<Status> statuses) {
this.statuses = statuses;
}
/**
*
* @return
* The aggregations
*/
public Aggregations getAggregations() {
return aggregations;
}
/**
*
* @param aggregations
* The aggregations
*/
public void setAggregations(Aggregations aggregations) {
this.aggregations = aggregations;
}
}
-----------------------------------com.example.SearchMetadata.java-----------------------------------
package com.example;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class SearchMetadata {
@SerializedName("itemsPerPage")
@Expose
private String itemsPerPage;
@SerializedName("count")
@Expose
private String count;
@SerializedName("count_twitter_all")
@Expose
private Integer countTwitterAll;
@SerializedName("count_twitter_new")
@Expose
private Integer countTwitterNew;
@SerializedName("count_backend")
@Expose
private Integer countBackend;
@SerializedName("count_cache")
@Expose
private Integer countCache;
@SerializedName("hits")
@Expose
private Integer hits;
@SerializedName("period")
@Expose
private Integer period;
@SerializedName("query")
@Expose
private String query;
@SerializedName("client")
@Expose
private String client;
@SerializedName("time")
@Expose
private Integer time;
@SerializedName("servicereduction")
@Expose
private String servicereduction;
/**
*
* @return
* The itemsPerPage
*/
public String getItemsPerPage() {
return itemsPerPage;
}
/**
*
* @param itemsPerPage
* The itemsPerPage
*/
public void setItemsPerPage(String itemsPerPage) {
this.itemsPerPage = itemsPerPage;
}
/**
*
* @return
* The count
*/
public String getCount() {
return count;
}
/**
*
* @param count
* The count
*/
public void setCount(String count) {
this.count = count;
}
/**
*
* @return
* The countTwitterAll
*/
public Integer getCountTwitterAll() {
return countTwitterAll;
}
/**
*
* @param countTwitterAll
* The count_twitter_all
*/
public void setCountTwitterAll(Integer countTwitterAll) {
this.countTwitterAll = countTwitterAll;
}
/**
*
* @return
* The countTwitterNew
*/
public Integer getCountTwitterNew() {
return countTwitterNew;
}
/**
*
* @param countTwitterNew
* The count_twitter_new
*/
public void setCountTwitterNew(Integer countTwitterNew) {
this.countTwitterNew = countTwitterNew;
}
/**
*
* @return
* The countBackend
*/
public Integer getCountBackend() {
return countBackend;
}
/**
*
* @param countBackend
* The count_backend
*/
public void setCountBackend(Integer countBackend) {
this.countBackend = countBackend;
}
/**
*
* @return
* The countCache
*/
public Integer getCountCache() {
return countCache;
}
/**
*
* @param countCache
* The count_cache
*/
public void setCountCache(Integer countCache) {
this.countCache = countCache;
}
/**
*
* @return
* The hits
*/
public Integer getHits() {
return hits;
}
/**
*
* @param hits
* The hits
*/
public void setHits(Integer hits) {
this.hits = hits;
}
/**
*
* @return
* The period
*/
public Integer getPeriod() {
return period;
}
/**
*
* @param period
* The period
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
*
* @return
* The query
*/
public String getQuery() {
return query;
}
/**
*
* @param query
* The query
*/
public void setQuery(String query) {
this.query = query;
}
/**
*
* @return
* The client
*/
public String getClient() {
return client;
}
/**
*
* @param client
* The client
*/
public void setClient(String client) {
this.client = client;
}
/**
*
* @return
* The time
*/
public Integer getTime() {
return time;
}
/**
*
* @param time
* The time
*/
public void setTime(Integer time) {
this.time = time;
}
/**
*
* @return
* The servicereduction
*/
public String getServicereduction() {
return servicereduction;
}
/**
*
* @param servicereduction
* The servicereduction
*/
public void setServicereduction(String servicereduction) {
this.servicereduction = servicereduction;
}
}
-----------------------------------com.example.Status.java-----------------------------------
package com.example;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class Status {
@SerializedName("created_at")
@Expose
private String createdAt;
@SerializedName("screen_name")
@Expose
private String screenName;
@SerializedName("text")
@Expose
private String text;
@SerializedName("link")
@Expose
private String link;
@SerializedName("id_str")
@Expose
private String idStr;
@SerializedName("source_type")
@Expose
private String sourceType;
@SerializedName("provider_type")
@Expose
private String providerType;
@SerializedName("provider_hash")
@Expose
private String providerHash;
@SerializedName("retweet_count")
@Expose
private Integer retweetCount;
@SerializedName("favourites_count")
@Expose
private Integer favouritesCount;
@SerializedName("images")
@Expose
private List<Object> images = new ArrayList<Object>();
@SerializedName("images_count")
@Expose
private Integer imagesCount;
@SerializedName("audio")
@Expose
private List<Object> audio = new ArrayList<Object>();
@SerializedName("audio_count")
@Expose
private Integer audioCount;
@SerializedName("videos")
@Expose
private List<String> videos = new ArrayList<String>();
@SerializedName("videos_count")
@Expose
private Integer videosCount;
@SerializedName("place_name")
@Expose
private String placeName;
@SerializedName("place_id")
@Expose
private String placeId;
@SerializedName("place_context")
@Expose
private String placeContext;
@SerializedName("hosts")
@Expose
private List<String> hosts = new ArrayList<String>();
@SerializedName("hosts_count")
@Expose
private Integer hostsCount;
@SerializedName("links")
@Expose
private List<String> links = new ArrayList<String>();
@SerializedName("links_count")
@Expose
private Integer linksCount;
@SerializedName("mentions")
@Expose
private List<Object> mentions = new ArrayList<Object>();
@SerializedName("mentions_count")
@Expose
private Integer mentionsCount;
@SerializedName("hashtags")
@Expose
private List<Object> hashtags = new ArrayList<Object>();
@SerializedName("hashtags_count")
@Expose
private Integer hashtagsCount;
@SerializedName("without_l_len")
@Expose
private Integer withoutLLen;
@SerializedName("without_lu_len")
@Expose
private Integer withoutLuLen;
@SerializedName("without_luh_len")
@Expose
private Integer withoutLuhLen;
@SerializedName("user")
@Expose
private User user;
@SerializedName("classifier_emotion")
@Expose
private String classifierEmotion;
@SerializedName("classifier_emotion_probability")
@Expose
private Double classifierEmotionProbability;
@SerializedName("classifier_language")
@Expose
private String classifierLanguage;
@SerializedName("classifier_language_probability")
@Expose
private Double classifierLanguageProbability;
@SerializedName("location_point")
@Expose
private List<Double> locationPoint = new ArrayList<Double>();
@SerializedName("location_radius")
@Expose
private Integer locationRadius;
@SerializedName("location_mark")
@Expose
private List<Double> locationMark = new ArrayList<Double>();
@SerializedName("location_source")
@Expose
private String locationSource;
@SerializedName("classifier_profanity")
@Expose
private String classifierProfanity;
@SerializedName("classifier_profanity_probability")
@Expose
private Double classifierProfanityProbability;
/**
*
* @return
* The createdAt
*/
public String getCreatedAt() {
return createdAt;
}
/**
*
* @param createdAt
* The created_at
*/
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
/**
*
* @return
* The screenName
*/
public String getScreenName() {
return screenName;
}
/**
*
* @param screenName
* The screen_name
*/
public void setScreenName(String screenName) {
this.screenName = screenName;
}
/**
*
* @return
* The text
*/
public String getText() {
return text;
}
/**
*
* @param text
* The text
*/
public void setText(String text) {
this.text = text;
}
/**
*
* @return
* The link
*/
public String getLink() {
return link;
}
/**
*
* @param link
* The link
*/
public void setLink(String link) {
this.link = link;
}
/**
*
* @return
* The idStr
*/
public String getIdStr() {
return idStr;
}
/**
*
* @param idStr
* The id_str
*/
public void setIdStr(String idStr) {
this.idStr = idStr;
}
/**
*
* @return
* The sourceType
*/
public String getSourceType() {
return sourceType;
}
/**
*
* @param sourceType
* The source_type
*/
public void setSourceType(String sourceType) {
this.sourceType = sourceType;
}
/**
*
* @return
* The providerType
*/
public String getProviderType() {
return providerType;
}
/**
*
* @param providerType
* The provider_type
*/
public void setProviderType(String providerType) {
this.providerType = providerType;
}
/**
*
* @return
* The providerHash
*/
public String getProviderHash() {
return providerHash;
}
/**
*
* @param providerHash
* The provider_hash
*/
public void setProviderHash(String providerHash) {
this.providerHash = providerHash;
}
/**
*
* @return
* The retweetCount
*/
public Integer getRetweetCount() {
return retweetCount;
}
/**
*
* @param retweetCount
* The retweet_count
*/
public void setRetweetCount(Integer retweetCount) {
this.retweetCount = retweetCount;
}
/**
*
* @return
* The favouritesCount
*/
public Integer getFavouritesCount() {
return favouritesCount;
}
/**
*
* @param favouritesCount
* The favourites_count
*/
public void setFavouritesCount(Integer favouritesCount) {
this.favouritesCount = favouritesCount;
}
/**
*
* @return
* The images
*/
public List<Object> getImages() {
return images;
}
/**
*
* @param images
* The images
*/
public void setImages(List<Object> images) {
this.images = images;
}
/**
*
* @return
* The imagesCount
*/
public Integer getImagesCount() {
return imagesCount;
}
/**
*
* @param imagesCount
* The images_count
*/
public void setImagesCount(Integer imagesCount) {
this.imagesCount = imagesCount;
}
/**
*
* @return
* The audio
*/
public List<Object> getAudio() {
return audio;
}
/**
*
* @param audio
* The audio
*/
public void setAudio(List<Object> audio) {
this.audio = audio;
}
/**
*
* @return
* The audioCount
*/
public Integer getAudioCount() {
return audioCount;
}
/**
*
* @param audioCount
* The audio_count
*/
public void setAudioCount(Integer audioCount) {
this.audioCount = audioCount;
}
/**
*
* @return
* The videos
*/
public List<String> getVideos() {
return videos;
}
/**
*
* @param videos
* The videos
*/
public void setVideos(List<String> videos) {
this.videos = videos;
}
/**
*
* @return
* The videosCount
*/
public Integer getVideosCount() {
return videosCount;
}
/**
*
* @param videosCount
* The videos_count
*/
public void setVideosCount(Integer videosCount) {
this.videosCount = videosCount;
}
/**
*
* @return
* The placeName
*/
public String getPlaceName() {
return placeName;
}
/**
*
* @param placeName
* The place_name
*/
public void setPlaceName(String placeName) {
this.placeName = placeName;
}
/**
*
* @return
* The placeId
*/
public String getPlaceId() {
return placeId;
}
/**
*
* @param placeId
* The place_id
*/
public void setPlaceId(String placeId) {
this.placeId = placeId;
}
/**
*
* @return
* The placeContext
*/
public String getPlaceContext() {
return placeContext;
}
/**
*
* @param placeContext
* The place_context
*/
public void setPlaceContext(String placeContext) {
this.placeContext = placeContext;
}
/**
*
* @return
* The hosts
*/
public List<String> getHosts() {
return hosts;
}
/**
*
* @param hosts
* The hosts
*/
public void setHosts(List<String> hosts) {
this.hosts = hosts;
}
/**
*
* @return
* The hostsCount
*/
public Integer getHostsCount() {
return hostsCount;
}
/**
*
* @param hostsCount
* The hosts_count
*/
public void setHostsCount(Integer hostsCount) {
this.hostsCount = hostsCount;
}
/**
*
* @return
* The links
*/
public List<String> getLinks() {
return links;
}
/**
*
* @param links
* The links
*/
public void setLinks(List<String> links) {
this.links = links;
}
/**
*
* @return
* The linksCount
*/
public Integer getLinksCount() {
return linksCount;
}
/**
*
* @param linksCount
* The links_count
*/
public void setLinksCount(Integer linksCount) {
this.linksCount = linksCount;
}
/**
*
* @return
* The mentions
*/
public List<Object> getMentions() {
return mentions;
}
/**
*
* @param mentions
* The mentions
*/
public void setMentions(List<Object> mentions) {
this.mentions = mentions;
}
/**
*
* @return
* The mentionsCount
*/
public Integer getMentionsCount() {
return mentionsCount;
}
/**
*
* @param mentionsCount
* The mentions_count
*/
public void setMentionsCount(Integer mentionsCount) {
this.mentionsCount = mentionsCount;
}
/**
*
* @return
* The hashtags
*/
public List<Object> getHashtags() {
return hashtags;
}
/**
*
* @param hashtags
* The hashtags
*/
public void setHashtags(List<Object> hashtags) {
this.hashtags = hashtags;
}
/**
*
* @return
* The hashtagsCount
*/
public Integer getHashtagsCount() {
return hashtagsCount;
}
/**
*
* @param hashtagsCount
* The hashtags_count
*/
public void setHashtagsCount(Integer hashtagsCount) {
this.hashtagsCount = hashtagsCount;
}
/**
*
* @return
* The withoutLLen
*/
public Integer getWithoutLLen() {
return withoutLLen;
}
/**
*
* @param withoutLLen
* The without_l_len
*/
public void setWithoutLLen(Integer withoutLLen) {
this.withoutLLen = withoutLLen;
}
/**
*
* @return
* The withoutLuLen
*/
public Integer getWithoutLuLen() {
return withoutLuLen;
}
/**
*
* @param withoutLuLen
* The without_lu_len
*/
public void setWithoutLuLen(Integer withoutLuLen) {
this.withoutLuLen = withoutLuLen;
}
/**
*
* @return
* The withoutLuhLen
*/
public Integer getWithoutLuhLen() {
return withoutLuhLen;
}
/**
*
* @param withoutLuhLen
* The without_luh_len
*/
public void setWithoutLuhLen(Integer withoutLuhLen) {
this.withoutLuhLen = withoutLuhLen;
}
/**
*
* @return
* The user
*/
public User getUser() {
return user;
}
/**
*
* @param user
* The user
*/
public void setUser(User user) {
this.user = user;
}
/**
*
* @return
* The classifierEmotion
*/
public String getClassifierEmotion() {
return classifierEmotion;
}
/**
*
* @param classifierEmotion
* The classifier_emotion
*/
public void setClassifierEmotion(String classifierEmotion) {
this.classifierEmotion = classifierEmotion;
}
/**
*
* @return
* The classifierEmotionProbability
*/
public Double getClassifierEmotionProbability() {
return classifierEmotionProbability;
}
/**
*
* @param classifierEmotionProbability
* The classifier_emotion_probability
*/
public void setClassifierEmotionProbability(Double classifierEmotionProbability) {
this.classifierEmotionProbability = classifierEmotionProbability;
}
/**
*
* @return
* The classifierLanguage
*/
public String getClassifierLanguage() {
return classifierLanguage;
}
/**
*
* @param classifierLanguage
* The classifier_language
*/
public void setClassifierLanguage(String classifierLanguage) {
this.classifierLanguage = classifierLanguage;
}
/**
*
* @return
* The classifierLanguageProbability
*/
public Double getClassifierLanguageProbability() {
return classifierLanguageProbability;
}
/**
*
* @param classifierLanguageProbability
* The classifier_language_probability
*/
public void setClassifierLanguageProbability(Double classifierLanguageProbability) {
this.classifierLanguageProbability = classifierLanguageProbability;
}
/**
*
* @return
* The locationPoint
*/
public List<Double> getLocationPoint() {
return locationPoint;
}
/**
*
* @param locationPoint
* The location_point
*/
public void setLocationPoint(List<Double> locationPoint) {
this.locationPoint = locationPoint;
}
/**
*
* @return
* The locationRadius
*/
public Integer getLocationRadius() {
return locationRadius;
}
/**
*
* @param locationRadius
* The location_radius
*/
public void setLocationRadius(Integer locationRadius) {
this.locationRadius = locationRadius;
}
/**
*
* @return
* The locationMark
*/
public List<Double> getLocationMark() {
return locationMark;
}
/**
*
* @param locationMark
* The location_mark
*/
public void setLocationMark(List<Double> locationMark) {
this.locationMark = locationMark;
}
/**
*
* @return
* The locationSource
*/
public String getLocationSource() {
return locationSource;
}
/**
*
* @param locationSource
* The location_source
*/
public void setLocationSource(String locationSource) {
this.locationSource = locationSource;
}
/**
*
* @return
* The classifierProfanity
*/
public String getClassifierProfanity() {
return classifierProfanity;
}
/**
*
* @param classifierProfanity
* The classifier_profanity
*/
public void setClassifierProfanity(String classifierProfanity) {
this.classifierProfanity = classifierProfanity;
}
/**
*
* @return
* The classifierProfanityProbability
*/
public Double getClassifierProfanityProbability() {
return classifierProfanityProbability;
}
/**
*
* @param classifierProfanityProbability
* The classifier_profanity_probability
*/
public void setClassifierProfanityProbability(Double classifierProfanityProbability) {
this.classifierProfanityProbability = classifierProfanityProbability;
}
}
-----------------------------------com.example.User.java-----------------------------------
package com.example;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class User {
@SerializedName("screen_name")
@Expose
private String screenName;
@SerializedName("user_id")
@Expose
private String userId;
@SerializedName("name")
@Expose
private String name;
@SerializedName("profile_image_url_https")
@Expose
private String profileImageUrlHttps;
@SerializedName("appearance_first")
@Expose
private String appearanceFirst;
@SerializedName("appearance_latest")
@Expose
private String appearanceLatest;
/**
*
* @return
* The screenName
*/
public String getScreenName() {
return screenName;
}
/**
*
* @param screenName
* The screen_name
*/
public void setScreenName(String screenName) {
this.screenName = screenName;
}
/**
*
* @return
* The userId
*/
public String getUserId() {
return userId;
}
/**
*
* @param userId
* The user_id
*/
public void setUserId(String userId) {
this.userId = userId;
}
/**
*
* @return
* The name
*/
public String getName() {
return name;
}
/**
*
* @param name
* The name
*/
public void setName(String name) {
this.name = name;
}
/**
*
* @return
* The profileImageUrlHttps
*/
public String getProfileImageUrlHttps() {
return profileImageUrlHttps;
}
/**
*
* @param profileImageUrlHttps
* The profile_image_url_https
*/
public void setProfileImageUrlHttps(String profileImageUrlHttps) {
this.profileImageUrlHttps = profileImageUrlHttps;
}
/**
*
* @return
* The appearanceFirst
*/
public String getAppearanceFirst() {
return appearanceFirst;
}
/**
*
* @param appearanceFirst
* The appearance_first
*/
public void setAppearanceFirst(String appearanceFirst) {
this.appearanceFirst = appearanceFirst;
}
/**
*
* @return
* The appearanceLatest
*/
public String getAppearanceLatest() {
return appearanceLatest;
}
/**
*
* @param appearanceLatest
* The appearance_latest
*/
public void setAppearanceLatest(String appearanceLatest) {
this.appearanceLatest = appearanceLatest;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment