AvatarInfoUtils.java
5.5 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package com.bitstrips.imoji.util;
import android.content.Context;
import com.bitstrips.imoji.identity.AvatarManager;
import com.bitstrips.imoji.injection.ForApplication;
import javax.inject.Inject;
import retrofit.converter.GsonConverter;
public class AvatarInfoUtils
{
private Context a;
private AvatarManager b;
private PreferenceUtils c;
private GsonConverter d;
@Inject
public AvatarInfoUtils(@ForApplication Context paramContext, AvatarManager paramAvatarManager, PreferenceUtils paramPreferenceUtils, GsonConverter paramGsonConverter)
{
this.a = paramContext;
this.b = paramAvatarManager;
this.c = paramPreferenceUtils;
this.d = paramGsonConverter;
}
/* Error */
public com.bitstrips.imoji.models.AvatarInfo getLatestAvatarInfoSync()
throws AuthorizationException, java.lang.IllegalStateException
{
// Byte code:
// 0: aload_0
// 1: getfield 25 com/bitstrips/imoji/util/AvatarInfoUtils:c Lcom/bitstrips/imoji/util/PreferenceUtils;
// 4: ldc 41
// 6: ldc 43
// 8: invokevirtual 49 com/bitstrips/imoji/util/PreferenceUtils:getString (ILjava/lang/String;)Ljava/lang/String;
// 11: astore_1
// 12: aload_0
// 13: getfield 25 com/bitstrips/imoji/util/AvatarInfoUtils:c Lcom/bitstrips/imoji/util/PreferenceUtils;
// 16: ldc 50
// 18: ldc 43
// 20: invokevirtual 49 com/bitstrips/imoji/util/PreferenceUtils:getString (ILjava/lang/String;)Ljava/lang/String;
// 23: astore_2
// 24: aload_0
// 25: getfield 25 com/bitstrips/imoji/util/AvatarInfoUtils:c Lcom/bitstrips/imoji/util/PreferenceUtils;
// 28: ldc 51
// 30: ldc 43
// 32: invokevirtual 49 com/bitstrips/imoji/util/PreferenceUtils:getString (ILjava/lang/String;)Ljava/lang/String;
// 35: astore_3
// 36: aload_1
// 37: invokestatic 57 android/text/TextUtils:isEmpty (Ljava/lang/CharSequence;)Z
// 40: ifeq +27 -> 67
// 43: aload_2
// 44: invokestatic 57 android/text/TextUtils:isEmpty (Ljava/lang/CharSequence;)Z
// 47: ifeq +20 -> 67
// 50: aload_3
// 51: invokestatic 57 android/text/TextUtils:isEmpty (Ljava/lang/CharSequence;)Z
// 54: ifeq +13 -> 67
// 57: new 34 com/bitstrips/imoji/util/AuthorizationException
// 60: dup
// 61: ldc 59
// 63: invokespecial 62 com/bitstrips/imoji/util/AuthorizationException:<init> (Ljava/lang/String;)V
// 66: athrow
// 67: aload_0
// 68: getfield 23 com/bitstrips/imoji/util/AvatarInfoUtils:b Lcom/bitstrips/imoji/identity/AvatarManager;
// 71: invokevirtual 68 com/bitstrips/imoji/identity/AvatarManager:updateAvatarInfoBackgroundSynchronous ()Lretrofit/client/Response;
// 74: astore_1
// 75: aload_0
// 76: getfield 27 com/bitstrips/imoji/util/AvatarInfoUtils:d Lretrofit/converter/GsonConverter;
// 79: aload_1
// 80: invokevirtual 74 retrofit/client/Response:getBody ()Lretrofit/mime/TypedInput;
// 83: ldc 76
// 85: invokevirtual 82 retrofit/converter/GsonConverter:fromBody (Lretrofit/mime/TypedInput;Ljava/lang/reflect/Type;)Ljava/lang/Object;
// 88: checkcast 76 com/bitstrips/imoji/models/AvatarInfo
// 91: astore_1
// 92: aload_1
// 93: areturn
// 94: astore_1
// 95: aload_1
// 96: invokevirtual 85 retrofit/RetrofitError:getResponse ()Lretrofit/client/Response;
// 99: ifnull +27 -> 126
// 102: aload_1
// 103: invokevirtual 85 retrofit/RetrofitError:getResponse ()Lretrofit/client/Response;
// 106: invokevirtual 89 retrofit/client/Response:getStatus ()I
// 109: sipush 401
// 112: if_icmpne +14 -> 126
// 115: new 34 com/bitstrips/imoji/util/AuthorizationException
// 118: dup
// 119: ldc 91
// 121: aload_1
// 122: invokespecial 94 com/bitstrips/imoji/util/AuthorizationException:<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
// 125: athrow
// 126: aload_1
// 127: invokevirtual 85 retrofit/RetrofitError:getResponse ()Lretrofit/client/Response;
// 130: ifnull +18 -> 148
// 133: aload_1
// 134: invokevirtual 85 retrofit/RetrofitError:getResponse ()Lretrofit/client/Response;
// 137: invokevirtual 89 retrofit/client/Response:getStatus ()I
// 140: sipush 304
// 143: if_icmpne +5 -> 148
// 146: aconst_null
// 147: areturn
// 148: new 36 java/lang/IllegalStateException
// 151: dup
// 152: ldc 96
// 154: aload_1
// 155: invokespecial 97 java/lang/IllegalStateException:<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
// 158: athrow
// 159: astore_1
// 160: new 36 java/lang/IllegalStateException
// 163: dup
// 164: ldc 99
// 166: aload_1
// 167: invokespecial 97 java/lang/IllegalStateException:<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
// 170: athrow
// Local variable table:
// start length slot name signature
// 0 171 0 this AvatarInfoUtils
// 11 82 1 localObject Object
// 94 61 1 localRetrofitError retrofit.RetrofitError
// 159 8 1 localConversionException retrofit.converter.ConversionException
// 23 21 2 str1 String
// 35 16 3 str2 String
// Exception table:
// from to target type
// 67 75 94 retrofit/RetrofitError
// 75 92 159 retrofit/converter/ConversionException
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/util/AvatarInfoUtils.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/