AvatarInfo.java
2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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
*/