144 lines
3.2 KiB
Smali
144 lines
3.2 KiB
Smali
.class Lcom/vk/api/users/UsersGetSubscriptions$1;
|
|
.super Lcom/vtosters/lite/data/JsonParser;
|
|
.source "UsersGetSubscriptions.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/vk/api/users/UsersGetSubscriptions;-><init>(III)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vtosters/lite/data/JsonParser<",
|
|
"Lcom/vtosters/lite/UserProfile;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 13
|
|
invoke-direct {p0}, Lcom/vtosters/lite/data/JsonParser;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lorg/json/JSONObject;)Lcom/vtosters/lite/UserProfile;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lorg/json/JSONException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "type"
|
|
|
|
.line 16
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "page"
|
|
|
|
const-string v1, "type"
|
|
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "group"
|
|
|
|
const-string v1, "type"
|
|
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "event"
|
|
|
|
const-string v1, "type"
|
|
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 17
|
|
:cond_0
|
|
new-instance v0, Lcom/vtosters/lite/UserProfile;
|
|
|
|
invoke-direct {v0, p1}, Lcom/vtosters/lite/UserProfile;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
.line 18
|
|
iget v1, v0, Lcom/vtosters/lite/UserProfile;->n:I
|
|
|
|
neg-int v1, v1
|
|
|
|
iput v1, v0, Lcom/vtosters/lite/UserProfile;->n:I
|
|
|
|
const-string v1, "name"
|
|
|
|
.line 19
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, v0, Lcom/vtosters/lite/UserProfile;->p:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
|
|
.line 22
|
|
:cond_1
|
|
new-instance v0, Lcom/vtosters/lite/UserProfile;
|
|
|
|
invoke-direct {v0, p1}, Lcom/vtosters/lite/UserProfile;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public synthetic b(Lorg/json/JSONObject;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lorg/json/JSONException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 13
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/users/UsersGetSubscriptions$1;->a(Lorg/json/JSONObject;)Lcom/vtosters/lite/UserProfile;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|