127 lines
2.8 KiB
Smali
127 lines
2.8 KiB
Smali
.class public final Lcom/vk/api/notifications/NotificationsGetGroupSettings;
|
|
.super Lcom/vk/api/base/ApiRequest;
|
|
.source "NotificationsGetGroupSettings.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vk/api/base/ApiRequest<",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lb/h/h/g/SettingsSection;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 1
|
|
|
|
const-string v0, "notifications.getGroupSettings"
|
|
|
|
.line 1
|
|
invoke-direct {p0, v0}, Lcom/vk/api/base/ApiRequest;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, "group_id"
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v0, p1}, Lcom/vk/api/base/ApiRequest;->b(Ljava/lang/String;I)Lcom/vk/api/base/ApiRequest;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic a(Lorg/json/JSONObject;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/notifications/NotificationsGetGroupSettings;->a(Lorg/json/JSONObject;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public a(Lorg/json/JSONObject;)Ljava/util/List;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/json/JSONObject;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Lb/h/h/g/SettingsSection;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "response"
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 3
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
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 5
|
|
new-instance v4, Lb/h/h/g/SettingsSection;
|
|
|
|
invoke-direct {v4, v3}, Lb/h/h/g/SettingsSection;-><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-eqz v0, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
const-string p1, "Collections.emptyList<SettingsSection>()"
|
|
|
|
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|