199 lines
4.5 KiB
Smali
199 lines
4.5 KiB
Smali
.class public final Lcom/vk/api/m/AppsGetFromMenu;
|
|
.super Lcom/vk/api/base/ApiRequest;
|
|
.source "AppsGetFromMenu.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/vk/api/m/AppsGetFromMenu$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vk/api/base/ApiRequest<",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/vtosters/lite/data/ApiApplication;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Lcom/vk/api/m/AppsGetFromMenu$a;
|
|
|
|
|
|
# instance fields
|
|
.field private final b:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/vk/api/m/AppsGetFromMenu$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/vk/api/m/AppsGetFromMenu$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/vk/api/m/AppsGetFromMenu;->a:Lcom/vk/api/m/AppsGetFromMenu$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1, v0}, Lcom/vk/api/m/AppsGetFromMenu;-><init>(Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const-string v0, "type"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "apps.getFromMenu"
|
|
|
|
.line 8
|
|
invoke-direct {p0, v0}, Lcom/vk/api/base/ApiRequest;-><init>(Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/vk/api/m/AppsGetFromMenu;->b:Ljava/lang/String;
|
|
|
|
const-string p1, "count"
|
|
|
|
const/4 v0, 0x5
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p1, v0}, Lcom/vk/api/m/AppsGetFromMenu;->a(Ljava/lang/String;I)Lcom/vk/api/base/ApiRequest;
|
|
|
|
const-string p1, "filter"
|
|
|
|
.line 11
|
|
iget-object v0, p0, Lcom/vk/api/m/AppsGetFromMenu;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/vk/api/m/AppsGetFromMenu;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/vk/api/base/ApiRequest;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p2, p2, 0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const-string p1, "html"
|
|
|
|
.line 8
|
|
:cond_0
|
|
invoke-direct {p0, p1}, Lcom/vk/api/m/AppsGetFromMenu;-><init>(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lorg/json/JSONObject;)Ljava/util/List;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/json/JSONObject;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Lcom/vtosters/lite/data/ApiApplication;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "r"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "response"
|
|
|
|
.line 15
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "items"
|
|
|
|
.line 16
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 32
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 33
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
if-ge v1, v2, :cond_2
|
|
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 17
|
|
new-instance v4, Lcom/vtosters/lite/data/ApiApplication;
|
|
|
|
invoke-direct {v4, v3}, Lcom/vtosters/lite/data/ApiApplication;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:cond_2
|
|
if-nez v0, :cond_3
|
|
|
|
.line 35
|
|
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->a()V
|
|
|
|
:cond_3
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public synthetic b(Lorg/json/JSONObject;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/m/AppsGetFromMenu;->a(Lorg/json/JSONObject;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|