Back to project page kickflip-android-sdk.
The source code is released under:
Apache License
If you think the Android project kickflip-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.kickflip.sdk.api.json; /* w w w . j av a 2 s .c o m*/ import com.amazonaws.util.json.Jackson; import com.google.api.client.util.Key; import java.util.Map; /** * JSON API object for Kickflip User * */ public class User extends Response { @Key("app") private String mApp; @Key("display_name") private String mDisplayName; @Key("name") private String mName; @Key("uuid") private String mUUID; @Key("extra_info") private String mExtraInfoStr; @Key("avatar_url") private String mAvatarUrl; public User(String app, String name, String uuid, Map extraInfo) { mApp = app; mName = name; mUUID = uuid; if (extraInfo != null) mExtraInfoStr = Jackson.toJsonString(extraInfo); } public User(){ // Required Default Constructor } public String getApp() { return mApp; } public String getName() { return mName; } public String getDisplayName() { return mDisplayName; } public String getUUID() { return mUUID; } public Map getExtraInfo() { return (mExtraInfoStr == null ? null : Jackson.fromJsonString(mExtraInfoStr, Map.class)); } public String getAvatarUrl() { return mAvatarUrl; } }