Android Open Source - JsonPullParser User






From Project

Back to project page JsonPullParser.

License

The source code is released under:

Apache License

If you think the Android project JsonPullParser listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright 2011 vvakame <vvakame@gmail.com>
 *//from   w ww  .  j  a  va  2 s  .  c om
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.vvakame.sample.twitter;

import net.vvakame.util.jsonpullparser.annotation.JsonKey;
import net.vvakame.util.jsonpullparser.annotation.JsonModel;

/**
 * Sample data model for user (as in Twitter.)
 * @author vvakame
 */
@JsonModel(treatUnknownKeyAsError = true)
public class User {

  @JsonKey(decamelize = true)
  boolean followRequestSent;

  @JsonKey(decamelize = true)
  boolean contributorsEnabled;

  @JsonKey(decamelize = true)
  String profileSidebarFillColor;

  @JsonKey
  String description;

  @JsonKey
  boolean notifications;

  @JsonKey(decamelize = true)
  boolean profileBackgroundTile;

  @JsonKey(decamelize = true)
  String timeZone;

  @JsonKey(decamelize = true)
  String profileImageUrl;

  @JsonKey(decamelize = true)
  String profileImageUrlHttps;

  @JsonKey
  String location;

  @JsonKey(decamelize = true)
  long statusesCount;

  @JsonKey(decamelize = true)
  String profileLinkColor;

  @JsonKey(decamelize = true)
  long listedCount;

  @JsonKey
  String lang;

  @JsonKey(decamelize = true)
  long favouritesCount;

  @JsonKey(decamelize = true)
  String profileSidebarBorderColor;

  @JsonKey
  String url;

  @JsonKey(decamelize = true)
  String screenName;

  @JsonKey(decamelize = true)
  String idStr;

  @JsonKey(decamelize = true)
  boolean profileUseBackgroundImage;

  @JsonKey(decamelize = true)
  long followersCount;

  @JsonKey
  boolean following;

  @JsonKey
  boolean verified;

  @JsonKey(decamelize = true)
  long friendsCount;

  @JsonKey(decamelize = true)
  String profileBackgroundColor;

  @JsonKey("protected")
  boolean protect;

  @JsonKey(decamelize = true)
  boolean isTranslator;

  @JsonKey(decamelize = true)
  String profileBackgroundImageUrl;

  @JsonKey(decamelize = true)
  String profileBackgroundImageUrlHttps;

  @JsonKey(decamelize = true)
  String createdAt;

  @JsonKey
  String name;

  @JsonKey(decamelize = true)
  boolean showAllInlineMedia;

  @JsonKey(decamelize = true)
  boolean geoEnabled;

  @JsonKey
  long id;

  @JsonKey(decamelize = true)
  long utcOffset;

  @JsonKey(decamelize = true)
  String profileTextColor;

  @JsonKey(decamelize = true)
  boolean defaultProfileImage;

  @JsonKey(decamelize = true)
  boolean defaultProfile;


  /**
   * @return the followRequestSent
   * @category accessor
   */
  public boolean isFollowRequestSent() {
    return followRequestSent;
  }

  /**
   * @param followRequestSent the followRequestSent to set
   * @category accessor
   */
  public void setFollowRequestSent(boolean followRequestSent) {
    this.followRequestSent = followRequestSent;
  }

  /**
   * @return the contributorsEnabled
   * @category accessor
   */
  public boolean isContributorsEnabled() {
    return contributorsEnabled;
  }

  /**
   * @param contributorsEnabled the contributorsEnabled to set
   * @category accessor
   */
  public void setContributorsEnabled(boolean contributorsEnabled) {
    this.contributorsEnabled = contributorsEnabled;
  }

  /**
   * @return the profileSidebarFillColor
   * @category accessor
   */
  public String getProfileSidebarFillColor() {
    return profileSidebarFillColor;
  }

  /**
   * @param profileSidebarFillColor the profileSidebarFillColor to set
   * @category accessor
   */
  public void setProfileSidebarFillColor(String profileSidebarFillColor) {
    this.profileSidebarFillColor = profileSidebarFillColor;
  }

  /**
   * @return the description
   * @category accessor
   */
  public String getDescription() {
    return description;
  }

  /**
   * @param description the description to set
   * @category accessor
   */
  public void setDescription(String description) {
    this.description = description;
  }

  /**
   * @return the notifications
   * @category accessor
   */
  public boolean isNotifications() {
    return notifications;
  }

  /**
   * @param notifications the notifications to set
   * @category accessor
   */
  public void setNotifications(boolean notifications) {
    this.notifications = notifications;
  }

  /**
   * @return the profileBackgroundTile
   * @category accessor
   */
  public boolean isProfileBackgroundTile() {
    return profileBackgroundTile;
  }

  /**
   * @param profileBackgroundTile the profileBackgroundTile to set
   * @category accessor
   */
  public void setProfileBackgroundTile(boolean profileBackgroundTile) {
    this.profileBackgroundTile = profileBackgroundTile;
  }

  /**
   * @return the timeZone
   * @category accessor
   */
  public String getTimeZone() {
    return timeZone;
  }

  /**
   * @param timeZone the timeZone to set
   * @category accessor
   */
  public void setTimeZone(String timeZone) {
    this.timeZone = timeZone;
  }

  /**
   * @return the profileImageUrl
   * @category accessor
   */
  public String getProfileImageUrl() {
    return profileImageUrl;
  }

  /**
   * @param profileImageUrl the profileImageUrl to set
   * @category accessor
   */
  public void setProfileImageUrl(String profileImageUrl) {
    this.profileImageUrl = profileImageUrl;
  }

  /**
   * @return the profileImageUrlHttps
   * @category accessor
   */
  public String getProfileImageUrlHttps() {
    return profileImageUrlHttps;
  }

  /**
   * @param profileImageUrlHttps the profileImageUrlHttps to set
   * @category accessor
   */
  public void setProfileImageUrlHttps(String profileImageUrlHttps) {
    this.profileImageUrlHttps = profileImageUrlHttps;
  }

  /**
   * @return the location
   * @category accessor
   */
  public String getLocation() {
    return location;
  }

  /**
   * @param location the location to set
   * @category accessor
   */
  public void setLocation(String location) {
    this.location = location;
  }

  /**
   * @return the statusesCount
   * @category accessor
   */
  public long getStatusesCount() {
    return statusesCount;
  }

  /**
   * @param statusesCount the statusesCount to set
   * @category accessor
   */
  public void setStatusesCount(long statusesCount) {
    this.statusesCount = statusesCount;
  }

  /**
   * @return the profileLinkColor
   * @category accessor
   */
  public String getProfileLinkColor() {
    return profileLinkColor;
  }

  /**
   * @param profileLinkColor the profileLinkColor to set
   * @category accessor
   */
  public void setProfileLinkColor(String profileLinkColor) {
    this.profileLinkColor = profileLinkColor;
  }

  /**
   * @return the listedCount
   * @category accessor
   */
  public long getListedCount() {
    return listedCount;
  }

  /**
   * @param listedCount the listedCount to set
   * @category accessor
   */
  public void setListedCount(long listedCount) {
    this.listedCount = listedCount;
  }

  /**
   * @return the lang
   * @category accessor
   */
  public String getLang() {
    return lang;
  }

  /**
   * @param lang the lang to set
   * @category accessor
   */
  public void setLang(String lang) {
    this.lang = lang;
  }

  /**
   * @return the favouritesCount
   * @category accessor
   */
  public long getFavouritesCount() {
    return favouritesCount;
  }

  /**
   * @param favouritesCount the favouritesCount to set
   * @category accessor
   */
  public void setFavouritesCount(long favouritesCount) {
    this.favouritesCount = favouritesCount;
  }

  /**
   * @return the profileSidebarBorderColor
   * @category accessor
   */
  public String getProfileSidebarBorderColor() {
    return profileSidebarBorderColor;
  }

  /**
   * @param profileSidebarBorderColor the profileSidebarBorderColor to set
   * @category accessor
   */
  public void setProfileSidebarBorderColor(String profileSidebarBorderColor) {
    this.profileSidebarBorderColor = profileSidebarBorderColor;
  }

  /**
   * @return the url
   * @category accessor
   */
  public String getUrl() {
    return url;
  }

  /**
   * @param url the url to set
   * @category accessor
   */
  public void setUrl(String url) {
    this.url = url;
  }

  /**
   * @return the screenName
   * @category accessor
   */
  public String getScreenName() {
    return screenName;
  }

  /**
   * @param screenName the screenName to set
   * @category accessor
   */
  public void setScreenName(String screenName) {
    this.screenName = screenName;
  }

  /**
   * @return the idStr
   * @category accessor
   */
  public String getIdStr() {
    return idStr;
  }

  /**
   * @param idStr the idStr to set
   * @category accessor
   */
  public void setIdStr(String idStr) {
    this.idStr = idStr;
  }

  /**
   * @return the profileUseBackgroundImage
   * @category accessor
   */
  public boolean isProfileUseBackgroundImage() {
    return profileUseBackgroundImage;
  }

  /**
   * @param profileUseBackgroundImage the profileUseBackgroundImage to set
   * @category accessor
   */
  public void setProfileUseBackgroundImage(boolean profileUseBackgroundImage) {
    this.profileUseBackgroundImage = profileUseBackgroundImage;
  }

  /**
   * @return the followersCount
   * @category accessor
   */
  public long getFollowersCount() {
    return followersCount;
  }

  /**
   * @param followersCount the followersCount to set
   * @category accessor
   */
  public void setFollowersCount(long followersCount) {
    this.followersCount = followersCount;
  }

  /**
   * @return the following
   * @category accessor
   */
  public boolean isFollowing() {
    return following;
  }

  /**
   * @param following the following to set
   * @category accessor
   */
  public void setFollowing(boolean following) {
    this.following = following;
  }

  /**
   * @return the verified
   * @category accessor
   */
  public boolean isVerified() {
    return verified;
  }

  /**
   * @param verified the verified to set
   * @category accessor
   */
  public void setVerified(boolean verified) {
    this.verified = verified;
  }

  /**
   * @return the friendsCount
   * @category accessor
   */
  public long getFriendsCount() {
    return friendsCount;
  }

  /**
   * @param friendsCount the friendsCount to set
   * @category accessor
   */
  public void setFriendsCount(long friendsCount) {
    this.friendsCount = friendsCount;
  }

  /**
   * @return the profileBackgroundColor
   * @category accessor
   */
  public String getProfileBackgroundColor() {
    return profileBackgroundColor;
  }

  /**
   * @param profileBackgroundColor the profileBackgroundColor to set
   * @category accessor
   */
  public void setProfileBackgroundColor(String profileBackgroundColor) {
    this.profileBackgroundColor = profileBackgroundColor;
  }

  /**
   * @return the protect
   * @category accessor
   */
  public boolean isProtect() {
    return protect;
  }

  /**
   * @param protect the protect to set
   * @category accessor
   */
  public void setProtect(boolean protect) {
    this.protect = protect;
  }

  /**
   * @return the isTranslator
   * @category accessor
   */
  public boolean isTranslator() {
    return isTranslator;
  }

  /**
   * @param isTranslator the isTranslator to set
   * @category accessor
   */
  public void setTranslator(boolean isTranslator) {
    this.isTranslator = isTranslator;
  }

  /**
   * @return the profileBackgroundImageUrl
   * @category accessor
   */
  public String getProfileBackgroundImageUrl() {
    return profileBackgroundImageUrl;
  }

  /**
   * @param profileBackgroundImageUrl the profileBackgroundImageUrl to set
   * @category accessor
   */
  public void setProfileBackgroundImageUrl(String profileBackgroundImageUrl) {
    this.profileBackgroundImageUrl = profileBackgroundImageUrl;
  }

  /**
   * @return the profileBackgroundImageUrlHttps
   * @category accessor
   */
  public String getProfileBackgroundImageUrlHttps() {
    return profileBackgroundImageUrlHttps;
  }

  /**
   * @param profileBackgroundImageUrlHttps the profileBackgroundImageUrlHttps to set
   * @category accessor
   */
  public void setProfileBackgroundImageUrlHttps(String profileBackgroundImageUrlHttps) {
    this.profileBackgroundImageUrlHttps = profileBackgroundImageUrlHttps;
  }

  /**
   * @return the createdAt
   * @category accessor
   */
  public String getCreatedAt() {
    return createdAt;
  }

  /**
   * @param createdAt the createdAt to set
   * @category accessor
   */
  public void setCreatedAt(String createdAt) {
    this.createdAt = createdAt;
  }

  /**
   * @return the name
   * @category accessor
   */
  public String getName() {
    return name;
  }

  /**
   * @param name the name to set
   * @category accessor
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * @return the showAllInlineMedia
   * @category accessor
   */
  public boolean isShowAllInlineMedia() {
    return showAllInlineMedia;
  }

  /**
   * @param showAllInlineMedia the showAllInlineMedia to set
   * @category accessor
   */
  public void setShowAllInlineMedia(boolean showAllInlineMedia) {
    this.showAllInlineMedia = showAllInlineMedia;
  }

  /**
   * @return the geoEnabled
   * @category accessor
   */
  public boolean isGeoEnabled() {
    return geoEnabled;
  }

  /**
   * @param geoEnabled the geoEnabled to set
   * @category accessor
   */
  public void setGeoEnabled(boolean geoEnabled) {
    this.geoEnabled = geoEnabled;
  }

  /**
   * @return the id
   * @category accessor
   */
  public long getId() {
    return id;
  }

  /**
   * @param id the id to set
   * @category accessor
   */
  public void setId(long id) {
    this.id = id;
  }

  /**
   * @return the utcOffset
   * @category accessor
   */
  public long getUtcOffset() {
    return utcOffset;
  }

  /**
   * @param utcOffset the utcOffset to set
   * @category accessor
   */
  public void setUtcOffset(long utcOffset) {
    this.utcOffset = utcOffset;
  }

  /**
   * @return the profileTextColor
   * @category accessor
   */
  public String getProfileTextColor() {
    return profileTextColor;
  }

  /**
   * @param profileTextColor the profileTextColor to set
   * @category accessor
   */
  public void setProfileTextColor(String profileTextColor) {
    this.profileTextColor = profileTextColor;
  }

  /**
   * @return the defaultProfileImage
   * @category accessor
   */
  public boolean isDefaultProfileImage() {
    return defaultProfileImage;
  }

  /**
   * @param defaultProfileImage the defaultProfileImage to set
   * @category accessor
   */
  public void setDefaultProfileImage(boolean defaultProfileImage) {
    this.defaultProfileImage = defaultProfileImage;
  }

  /**
   * @return the defaultProfile
   * @category accessor
   */
  public boolean isDefaultProfile() {
    return defaultProfile;
  }

  /**
   * @param defaultProfile the defaultProfile to set
   * @category accessor
   */
  public void setDefaultProfile(boolean defaultProfile) {
    this.defaultProfile = defaultProfile;
  }
}




Java Source Code List

net.vvakame.apt.AptUtil.java
net.vvakame.jsonpullparser.android.sample.MainActivity.java
net.vvakame.sample.BaseData.java
net.vvakame.sample.BuilderData.java
net.vvakame.sample.ComplexData2.java
net.vvakame.sample.ComplexData.java
net.vvakame.sample.ContainsAnotherPackageObjectData.java
net.vvakame.sample.ConverterData.java
net.vvakame.sample.ExtendsData1.java
net.vvakame.sample.ExtendsData2.java
net.vvakame.sample.ForInnerClassData.java
net.vvakame.sample.GenToPackagePrivateData.java
net.vvakame.sample.JsonMetaToPackagePrivateValidData.java
net.vvakame.sample.MiniData.java
net.vvakame.sample.NestDepth1Data.java
net.vvakame.sample.NestDepth2Data.java
net.vvakame.sample.NestParentData.java
net.vvakame.sample.PrimitiveTypeData.java
net.vvakame.sample.PrimitiveWrapperData.java
net.vvakame.sample.PrimitiveWrapperListData.java
net.vvakame.sample.SampleEnum.java
net.vvakame.sample.SortOrderData1.java
net.vvakame.sample.SortOrderData2.java
net.vvakame.sample.StoreJsonData1.java
net.vvakame.sample.StoreJsonData2.java
net.vvakame.sample.TestData.java
net.vvakame.sample.anotherpackage.AnotherPackageClass.java
net.vvakame.sample.converter.IntFlattenConverter.java
net.vvakame.sample.converter.StringDiscardConverter.java
net.vvakame.sample.duma.ItemMapConverter.java
net.vvakame.sample.duma.Item.java
net.vvakame.sample.duma.ReadItLater.java
net.vvakame.sample.issue25.Issue25.java
net.vvakame.sample.issue28.Issue28.java
net.vvakame.sample.issue2.Child0ValueP0.java
net.vvakame.sample.issue2.Child0ValueP1.java
net.vvakame.sample.issue2.Child1ValueP0.java
net.vvakame.sample.issue2.Child1ValueP1.java
net.vvakame.sample.issue2.Grandchild0ValueC0P0.java
net.vvakame.sample.issue2.Grandchild0ValueC0P1.java
net.vvakame.sample.issue2.Grandchild0ValueC1P0.java
net.vvakame.sample.issue2.Grandchild0ValueC1P1.java
net.vvakame.sample.issue2.Grandchild1ValueC0P0.java
net.vvakame.sample.issue2.Grandchild1ValueC0P1.java
net.vvakame.sample.issue2.Grandchild1ValueC1P0.java
net.vvakame.sample.issue2.Grandchild1ValueC1P1.java
net.vvakame.sample.issue2.Parent0Value.java
net.vvakame.sample.issue2.Parent1Value.java
net.vvakame.sample.issue30.PrimitiveList.java
net.vvakame.sample.issue30.RecursiveStructure.java
net.vvakame.sample.issue31.BaseData.java
net.vvakame.sample.issue31.ExtendData.java
net.vvakame.sample.twitter.Place.java
net.vvakame.sample.twitter.Place.java
net.vvakame.sample.twitter.Tweet.java
net.vvakame.sample.twitter.Tweet.java
net.vvakame.sample.twitter.User.java
net.vvakame.sample.twitter.User.java
net.vvakame.twitter.ResultTweet.java
net.vvakame.twitter.SearchResult.java
net.vvakame.util.jsonpullparser.JsonFormatException.java
net.vvakame.util.jsonpullparser.JsonPullParser.java
net.vvakame.util.jsonpullparser.JsonSlice.java
net.vvakame.util.jsonpullparser.Stack.java
net.vvakame.util.jsonpullparser.annotation.JsonKey.java
net.vvakame.util.jsonpullparser.annotation.JsonModel.java
net.vvakame.util.jsonpullparser.annotation.StoreJson.java
net.vvakame.util.jsonpullparser.builder.JsonCoderRouter.java
net.vvakame.util.jsonpullparser.builder.JsonModelBuilder.java
net.vvakame.util.jsonpullparser.builder.JsonModelCoder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyBuilderCreator.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyBuilder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyCoder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyMeta.java
net.vvakame.util.jsonpullparser.factory.JsonAnnotationProcessor.java
net.vvakame.util.jsonpullparser.factory.JsonKeyModel.java
net.vvakame.util.jsonpullparser.factory.JsonModelGenerator.java
net.vvakame.util.jsonpullparser.factory.JsonModelModel.java
net.vvakame.util.jsonpullparser.factory.Log.java
net.vvakame.util.jsonpullparser.factory.StandardTypeKindVisitor.java
net.vvakame.util.jsonpullparser.factory.StoreJsonModel.java
net.vvakame.util.jsonpullparser.factory.template.MvelTemplate.java
net.vvakame.util.jsonpullparser.factory.template.Template.java
net.vvakame.util.jsonpullparser.googleapiclient.JppFactory.java
net.vvakame.util.jsonpullparser.googleapiclient.JppGenerator.java
net.vvakame.util.jsonpullparser.googleapiclient.JppParser.java
net.vvakame.util.jsonpullparser.util.JsonArray.java
net.vvakame.util.jsonpullparser.util.JsonHash.java
net.vvakame.util.jsonpullparser.util.JsonParseUtil.java
net.vvakame.util.jsonpullparser.util.JsonSliceUtil.java
net.vvakame.util.jsonpullparser.util.JsonUtil.java
net.vvakame.util.jsonpullparser.util.OnJsonObjectAddListener.java
net.vvakame.util.jsonpullparser.util.TokenConverter.java
net.vvakame.util.jsonpullparser.util.Type.java