146 lines
3.3 KiB
Smali
146 lines
3.3 KiB
Smali
.class public Lcom/vk/api/groups/GroupsGetById;
|
|
.super Lcom/vk/api/base/ApiRequest;
|
|
.source "GroupsGetById.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vk/api/base/ApiRequest<",
|
|
"Lcom/vk/dto/group/Group;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 8
|
|
|
|
const-string v0, "members_count"
|
|
|
|
const-string v1, "is_closed"
|
|
|
|
const-string v2, "start_date"
|
|
|
|
const-string v3, "can_message"
|
|
|
|
const-string v4, "is_messages_blocked"
|
|
|
|
const-string v5, "member_status"
|
|
|
|
const-string v6, "ban_info"
|
|
|
|
const-string v7, "is_market_cart_enabled"
|
|
|
|
.line 1
|
|
filled-new-array/range {v0 .. v7}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/vk/api/groups/GroupsGetById;-><init>(I[Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(I[Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const-string v0, "groups.getById"
|
|
|
|
.line 2
|
|
invoke-direct {p0, v0}, Lcom/vk/api/base/ApiRequest;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, "group_id"
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0, p1}, Lcom/vk/api/base/ApiRequest;->b(Ljava/lang/String;I)Lcom/vk/api/base/ApiRequest;
|
|
|
|
const-string p1, ","
|
|
|
|
.line 4
|
|
invoke-static {p1, p2}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "fields"
|
|
|
|
invoke-virtual {p0, p2, p1}, Lcom/vk/api/base/ApiRequest;->c(Ljava/lang/String;Ljava/lang/String;)Lcom/vk/api/base/ApiRequest;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lorg/json/JSONObject;)Lcom/vk/dto/group/Group;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
new-instance v1, Lcom/vk/dto/group/Group;
|
|
|
|
const-string v2, "response"
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Lcom/vk/dto/group/Group;-><init>(Lorg/json/JSONObject;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v1
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const-string v3, "error"
|
|
|
|
aput-object v3, v2, v0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
aput-object v1, v2, v0
|
|
|
|
.line 3
|
|
invoke-static {v2}, Lcom/vk/log/L;->a([Ljava/lang/Object;)V
|
|
|
|
.line 4
|
|
invoke-super {p0, p1}, Lcom/vk/api/sdk/o/VKRequest;->a(Lorg/json/JSONObject;)Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/vk/dto/group/Group;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic a(Lorg/json/JSONObject;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/groups/GroupsGetById;->a(Lorg/json/JSONObject;)Lcom/vk/dto/group/Group;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|