110 lines
2.6 KiB
Smali
110 lines
2.6 KiB
Smali
.class public Lcom/vk/api/users/UsersGetOne;
|
|
.super Lcom/vk/api/base/ApiRequest;
|
|
.source "UsersGetOne.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vk/api/base/ApiRequest<",
|
|
"Lcom/vtosters/lite/UserProfile;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 3
|
|
|
|
const-string v0, "photo_50"
|
|
|
|
const-string v1, "photo_100"
|
|
|
|
const-string v2, "domain"
|
|
|
|
.line 15
|
|
filled-new-array {v0, v1, v2}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/vk/api/users/UsersGetOne;-><init>(I[Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(I[Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const-string v0, "users.get"
|
|
|
|
.line 19
|
|
invoke-direct {p0, v0}, Lcom/vk/api/base/ApiRequest;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, "user_ids"
|
|
|
|
.line 20
|
|
invoke-virtual {p0, v0, p1}, Lcom/vk/api/users/UsersGetOne;->a(Ljava/lang/String;I)Lcom/vk/api/base/ApiRequest;
|
|
|
|
const-string p1, "fields"
|
|
|
|
const-string v0, ","
|
|
|
|
.line 21
|
|
invoke-static {v0, p2}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/vk/api/users/UsersGetOne;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/vk/api/base/ApiRequest;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lorg/json/JSONObject;)Lcom/vtosters/lite/UserProfile;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lorg/json/JSONException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "response"
|
|
|
|
.line 25
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 26
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
.line 27
|
|
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 = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 12
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/users/UsersGetOne;->a(Lorg/json/JSONObject;)Lcom/vtosters/lite/UserProfile;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|