204 lines
4.9 KiB
Smali
204 lines
4.9 KiB
Smali
.class Lcom/vk/api/groups/GroupsGetBanned$a;
|
|
.super Lcom/vk/dto/common/data/JsonParser;
|
|
.source "GroupsGetBanned.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/vk/api/groups/GroupsGetBanned;->a(Lorg/json/JSONObject;)Lcom/vk/dto/common/data/VKList;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vk/dto/common/data/JsonParser<",
|
|
"Lcom/vk/dto/user/UserProfile;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic b:Landroid/util/SparseArray;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/vk/api/groups/GroupsGetBanned;Landroid/util/SparseArray;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p2, p0, Lcom/vk/api/groups/GroupsGetBanned$a;->b:Landroid/util/SparseArray;
|
|
|
|
invoke-direct {p0}, Lcom/vk/dto/common/data/JsonParser;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lorg/json/JSONObject;)Lcom/vk/dto/user/UserProfile;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lorg/json/JSONException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "profile"
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const-string v1, "id"
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 4
|
|
:cond_0
|
|
new-instance v1, Lcom/vk/dto/user/UserProfile;
|
|
|
|
invoke-direct {v1, v0}, Lcom/vk/dto/user/UserProfile;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
const-string v0, "ban_info"
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
.line 6
|
|
iget-object v0, v1, Lcom/vk/dto/user/UserProfile;->L:Landroid/os/Bundle;
|
|
|
|
iget-object v2, p0, Lcom/vk/api/groups/GroupsGetBanned$a;->b:Landroid/util/SparseArray;
|
|
|
|
const-string v3, "admin_id"
|
|
|
|
invoke-virtual {p1, v3}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/os/Parcelable;
|
|
|
|
const-string v3, "ban_admin"
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
.line 7
|
|
iget-object v0, v1, Lcom/vk/dto/user/UserProfile;->L:Landroid/os/Bundle;
|
|
|
|
const-string v2, "date"
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "ban_date"
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
.line 8
|
|
iget-object v0, v1, Lcom/vk/dto/user/UserProfile;->L:Landroid/os/Bundle;
|
|
|
|
const-string v2, "end_date"
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "ban_end_date"
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
.line 9
|
|
iget-object v0, v1, Lcom/vk/dto/user/UserProfile;->L:Landroid/os/Bundle;
|
|
|
|
const-string v2, "reason"
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "ban_reason"
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
.line 10
|
|
iget-object v0, v1, Lcom/vk/dto/user/UserProfile;->L:Landroid/os/Bundle;
|
|
|
|
const-string v2, "comment"
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "ban_comment"
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 11
|
|
iget-object v0, v1, Lcom/vk/dto/user/UserProfile;->L:Landroid/os/Bundle;
|
|
|
|
const-string v2, "comment_visible"
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne p1, v2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
const-string p1, "ban_comment_visible"
|
|
|
|
invoke-virtual {v0, p1, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
return-object v1
|
|
|
|
:cond_2
|
|
:goto_1
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic a(Lorg/json/JSONObject;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lorg/json/JSONException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/groups/GroupsGetBanned$a;->a(Lorg/json/JSONObject;)Lcom/vk/dto/user/UserProfile;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|