Files
vtosters/smali/smali_classes2/com/vk/api/wall/WallGetComment.smali
T
2022-03-24 19:37:43 +03:00

210 lines
5.2 KiB
Smali

.class public final Lcom/vk/api/wall/WallGetComment;
.super Lcom/vk/api/base/ApiRequest;
.source "WallGetComment.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/vk/api/base/ApiRequest<",
"Lcom/vtosters/lite/NewsComment;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>(IIZ)V
.locals 1
const-string v0, "wall.getComment"
.line 13
invoke-direct {p0, v0}, Lcom/vk/api/base/ApiRequest;-><init>(Ljava/lang/String;)V
const-string v0, "owner_id"
.line 16
invoke-virtual {p0, v0, p1}, Lcom/vk/api/wall/WallGetComment;->a(Ljava/lang/String;I)Lcom/vk/api/base/ApiRequest;
const-string p1, "comment_id"
.line 17
invoke-virtual {p0, p1, p2}, Lcom/vk/api/wall/WallGetComment;->a(Ljava/lang/String;I)Lcom/vk/api/base/ApiRequest;
if-eqz p3, :cond_0
const-string p1, "extended"
const/4 p2, 0x1
.line 19
invoke-virtual {p0, p1, p2}, Lcom/vk/api/wall/WallGetComment;->a(Ljava/lang/String;I)Lcom/vk/api/base/ApiRequest;
const-string p1, "fields"
const-string p2, "photo_50,photo_100,verified,trending,first_name_dat"
.line 20
invoke-virtual {p0, p1, p2}, Lcom/vk/api/wall/WallGetComment;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/vk/api/base/ApiRequest;
:cond_0
return-void
.end method
# virtual methods
.method public a(Lorg/json/JSONObject;)Lcom/vtosters/lite/NewsComment;
.locals 9
const-string v0, "r"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 28
new-instance v0, Landroid/util/SparseArray;
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
.line 29
new-instance v1, Landroid/util/SparseArray;
invoke-direct {v1}, Landroid/util/SparseArray;-><init>()V
const-string v2, "response"
.line 31
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object p1
.line 33
new-instance v2, Lcom/vk/api/wall/WallGetComment$parse$lambda$1;
invoke-direct {v2, v0, v1}, Lcom/vk/api/wall/WallGetComment$parse$lambda$1;-><init>(Landroid/util/SparseArray;Landroid/util/SparseArray;)V
check-cast v2, Lkotlin/jvm/a/Functions11;
const-string v3, "profiles"
.line 41
invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v3
const/4 v4, 0x0
if-eqz v3, :cond_0
.line 52
invoke-virtual {v3}, Lorg/json/JSONArray;->length()I
move-result v5
const/4 v6, 0x0
:goto_0
if-ge v6, v5, :cond_0
.line 53
invoke-virtual {v3, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
move-result-object v7
const-string v8, "this.getJSONObject(i)"
invoke-static {v7, v8}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
.line 42
sget-object v8, Lcom/vk/dto/newsfeed/Owner;->a:Lcom/vk/dto/newsfeed/Owner$b;
invoke-virtual {v8, v7}, Lcom/vk/dto/newsfeed/Owner$b;->a(Lorg/json/JSONObject;)Lcom/vk/dto/newsfeed/Owner;
move-result-object v8
invoke-interface {v2, v8, v7}, Lkotlin/jvm/a/Functions11;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v6, v6, 0x1
goto :goto_0
:cond_0
const-string v3, "groups"
.line 45
invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v3
if-eqz v3, :cond_1
.line 56
invoke-virtual {v3}, Lorg/json/JSONArray;->length()I
move-result v5
const/4 v6, 0x0
:goto_1
if-ge v6, v5, :cond_1
.line 57
invoke-virtual {v3, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
move-result-object v7
const-string v8, "this.getJSONObject(i)"
invoke-static {v7, v8}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
.line 46
sget-object v8, Lcom/vk/dto/newsfeed/Owner;->a:Lcom/vk/dto/newsfeed/Owner$b;
invoke-virtual {v8, v7}, Lcom/vk/dto/newsfeed/Owner$b;->b(Lorg/json/JSONObject;)Lcom/vk/dto/newsfeed/Owner;
move-result-object v8
invoke-interface {v2, v8, v7}, Lkotlin/jvm/a/Functions11;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v6, v6, 0x1
goto :goto_1
.line 49
:cond_1
new-instance v2, Lcom/vtosters/lite/NewsComment;
const-string v3, "items"
invoke-virtual {p1, v3}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object p1
invoke-virtual {p1, v4}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
move-result-object p1
invoke-direct {v2, p1, v0, v1}, Lcom/vtosters/lite/NewsComment;-><init>(Lorg/json/JSONObject;Landroid/util/SparseArray;Landroid/util/SparseArray;)V
return-object v2
.end method
.method public a()Ljava/lang/String;
.locals 1
const-string v0, "5.95"
return-object v0
.end method
.method public synthetic b(Lorg/json/JSONObject;)Ljava/lang/Object;
.locals 0
.line 12
invoke-virtual {p0, p1}, Lcom/vk/api/wall/WallGetComment;->a(Lorg/json/JSONObject;)Lcom/vtosters/lite/NewsComment;
move-result-object p1
return-object p1
.end method