Files
vtosters/smali/smali_classes2/com/vk/dto/notifications/NotificationItem$ActionButtons$b.smali
T

157 lines
3.5 KiB
Smali

.class public final Lcom/vk/dto/notifications/NotificationItem$ActionButtons$b;
.super Ljava/lang/Object;
.source "NotificationItem.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vk/dto/notifications/NotificationItem$ActionButtons;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/vk/dto/notifications/NotificationItem$ActionButtons$b;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Lorg/json/JSONObject;Lkotlin/jvm/b/Functions2;)Lcom/vk/dto/notifications/NotificationItem$ActionButtons;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/json/JSONObject;",
"Lkotlin/jvm/b/Functions2<",
"-",
"Lorg/json/JSONObject;",
"Lcom/vk/dto/notifications/NotificationButton;",
">;)",
"Lcom/vk/dto/notifications/NotificationItem$ActionButtons;"
}
.end annotation
const-string v0, "left"
.line 1
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v0
const/4 v1, 0x0
const/4 v2, 0x0
if-eqz v0, :cond_1
.line 2
new-instance v3, Ljava/util/ArrayList;
invoke-virtual {v0}, Lorg/json/JSONArray;->length()I
move-result v4
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(I)V
.line 3
invoke-virtual {v0}, Lorg/json/JSONArray;->length()I
move-result v4
const/4 v5, 0x0
:goto_0
if-ge v5, v4, :cond_2
invoke-virtual {v0, v5}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;
move-result-object v6
if-eqz v6, :cond_0
invoke-interface {p2, v6}, Lkotlin/jvm/b/Functions2;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v6
invoke-virtual {v3, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:cond_0
add-int/lit8 v5, v5, 0x1
goto :goto_0
:cond_1
move-object v3, v2
:cond_2
const-string v0, "right"
.line 4
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object p1
if-eqz p1, :cond_4
.line 5
new-instance v2, Ljava/util/ArrayList;
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
move-result v0
invoke-direct {v2, v0}, Ljava/util/ArrayList;-><init>(I)V
.line 6
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
move-result v0
:goto_1
if-ge v1, v0, :cond_4
invoke-virtual {p1, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;
move-result-object v4
if-eqz v4, :cond_3
invoke-interface {p2, v4}, Lkotlin/jvm/b/Functions2;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:cond_3
add-int/lit8 v1, v1, 0x1
goto :goto_1
.line 7
:cond_4
new-instance p1, Lcom/vk/dto/notifications/NotificationItem$ActionButtons;
invoke-direct {p1, v3, v2}, Lcom/vk/dto/notifications/NotificationItem$ActionButtons;-><init>(Ljava/util/List;Ljava/util/List;)V
return-object p1
.end method