AvatarInfo.java 2.45 KB
package com.bitstrips.imoji.models;

import android.text.TextUtils;
import com.bitstrips.imoji.util.PreferenceUtils;
import com.google.gson.annotations.SerializedName;

public class AvatarInfo
{
  @SerializedName("id")
  String a;
  @SerializedName("bsauth")
  Boolean b;
  @SerializedName("gender")
  Integer c;
  @SerializedName("style")
  Integer d;
  @SerializedName("bodyType")
  Integer e;
  @SerializedName("breastType")
  Integer f;
  @SerializedName("skinTone")
  Integer g;
  @SerializedName("isDressed")
  Boolean h;
  @SerializedName("id_hash")
  String i;
  @SerializedName("avatar_id")
  String j;
  @SerializedName("avatar_version_uuid")
  String k;
  
  public AvatarInfo(String paramString, boolean paramBoolean)
  {
    this.k = paramString;
    this.b = Boolean.valueOf(paramBoolean);
  }
  
  public static String getIdHash(PreferenceUtils paramPreferenceUtils)
  {
    return paramPreferenceUtils.getString(2131231173, null);
  }
  
  public String getAvatarId()
  {
    return this.j;
  }
  
  public String getId()
  {
    return this.k;
  }
  
  public boolean getIsDressed()
  {
    if (this.h != null) {
      return this.h.booleanValue();
    }
    return false;
  }
  
  @Deprecated
  public String getLegacyId()
  {
    return this.a;
  }
  
  public int getStyle()
  {
    return this.d.intValue();
  }
  
  public boolean hasAvatar()
  {
    return !TextUtils.isEmpty(this.a);
  }
  
  public boolean hasBSAuthAccount()
  {
    return this.b.booleanValue();
  }
  
  public void saveToPreferences(PreferenceUtils paramPreferenceUtils)
  {
    paramPreferenceUtils.putString(2131231175, this.k);
    paramPreferenceUtils.putString(2131231270, this.a);
    paramPreferenceUtils.putString(2131231176, this.j);
    if (this.c != null) {
      paramPreferenceUtils.putInt(2131231172, this.c.intValue());
    }
    if (this.d != null) {
      paramPreferenceUtils.putInt(2131231179, this.d.intValue());
    }
    if (this.e != null) {
      paramPreferenceUtils.putInt(2131231167, this.e.intValue());
    }
    if (this.f != null) {
      paramPreferenceUtils.putInt(2131231168, this.f.intValue());
    }
    if (this.g != null) {
      paramPreferenceUtils.putInt(2131231178, this.g.intValue());
    }
    if (this.i != null) {
      paramPreferenceUtils.putString(2131231173, this.i);
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/models/AvatarInfo.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */