195 lines
4.8 KiB
Smali
195 lines
4.8 KiB
Smali
.class final Lcom/vk/api/newsfeed/SearchGetHintsWithAttachments$Companion$parseResponse$hints$1;
|
|
.super Lkotlin/jvm/internal/Lambda;
|
|
.source "SearchGetHintsWithAttachments.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/b/Functions2;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/vk/api/newsfeed/SearchGetHintsWithAttachments$Companion;->a(Lorg/json/JSONObject;)Lcom/vk/api/newsfeed/SearchGetHintsWithAttachments$Response;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/internal/Lambda;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"Lorg/json/JSONObject;",
|
|
"Lcom/vk/dto/user/UserProfile;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $owners:Landroid/util/SparseArray;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroid/util/SparseArray;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/vk/api/newsfeed/SearchGetHintsWithAttachments$Companion$parseResponse$hints$1;->$owners:Landroid/util/SparseArray;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lorg/json/JSONObject;)Lcom/vk/dto/user/UserProfile;
|
|
.locals 5
|
|
|
|
const-string v0, "type"
|
|
|
|
.line 1
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "group"
|
|
|
|
const-string v2, "profile"
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v3
|
|
|
|
const v4, -0x12717657
|
|
|
|
if-eq v3, v4, :cond_2
|
|
|
|
const v4, 0x5e0f67f
|
|
|
|
if-eq v3, v4, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_1
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
new-instance v0, Lcom/vk/dto/user/UserProfile;
|
|
|
|
new-instance v3, Lcom/vk/dto/group/Group;
|
|
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-direct {v3, v4}, Lcom/vk/dto/group/Group;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
invoke-direct {v0, v3}, Lcom/vk/dto/user/UserProfile;-><init>(Lcom/vk/dto/group/Group;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 4
|
|
:cond_2
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
new-instance v0, Lcom/vk/dto/user/UserProfile;
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v0, v3}, Lcom/vk/dto/user/UserProfile;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Lcom/vk/dto/user/UserProfile;->H()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
sget-object v2, Lcom/vk/dto/newsfeed/Owner;->h:Lcom/vk/dto/newsfeed/Owner$b;
|
|
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "it.optJSONObject(TYPE_GROUP)"
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, p1}, Lcom/vk/dto/newsfeed/Owner$b;->b(Lorg/json/JSONObject;)Lcom/vk/dto/newsfeed/Owner;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_2
|
|
|
|
.line 6
|
|
:cond_4
|
|
sget-object v1, Lcom/vk/dto/newsfeed/Owner;->h:Lcom/vk/dto/newsfeed/Owner$b;
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v2, "it.optJSONObject(TYPE_PROFILE)"
|
|
|
|
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p1}, Lcom/vk/dto/newsfeed/Owner$b;->c(Lorg/json/JSONObject;)Lcom/vk/dto/newsfeed/Owner;
|
|
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
:goto_2
|
|
iget-object v1, p0, Lcom/vk/api/newsfeed/SearchGetHintsWithAttachments$Companion$parseResponse$hints$1;->$owners:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {p1}, Lcom/vk/dto/newsfeed/Owner;->getUid()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
:cond_5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
check-cast p1, Lorg/json/JSONObject;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/newsfeed/SearchGetHintsWithAttachments$Companion$parseResponse$hints$1;->a(Lorg/json/JSONObject;)Lcom/vk/dto/user/UserProfile;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|