625 lines
14 KiB
Smali
625 lines
14 KiB
Smali
.class public final Lcom/vk/dto/identity/IdentityCardData$b;
|
|
.super Ljava/lang/Object;
|
|
.source "IdentityCardData.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/vk/dto/identity/IdentityCardData;
|
|
.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/identity/IdentityCardData$b;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/vk/dto/identity/IdentityCardData$b;Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/vk/dto/identity/IdentityCardData$b;->a(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final a(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/json/JSONArray;",
|
|
")",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/vk/dto/identity/IdentityAddress;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "this.getJSONObject(i)"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 5
|
|
new-instance v4, Lcom/vk/dto/identity/IdentityAddress;
|
|
|
|
invoke-direct {v4, v3}, Lcom/vk/dto/identity/IdentityAddress;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final a(I)V
|
|
.locals 2
|
|
|
|
.line 10
|
|
invoke-static {}, Lcom/vk/core/preference/Preference;->a()Landroid/content/SharedPreferences;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "identity_selected_address_id"
|
|
|
|
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic b(Lcom/vk/dto/identity/IdentityCardData$b;Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/vk/dto/identity/IdentityCardData$b;->b(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final b(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/json/JSONArray;",
|
|
")",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/vk/dto/common/City;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "this.getJSONObject(i)"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 5
|
|
new-instance v4, Lcom/vk/dto/common/City;
|
|
|
|
invoke-direct {v4, v3}, Lcom/vk/dto/common/City;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final b(I)V
|
|
.locals 2
|
|
|
|
.line 6
|
|
invoke-static {}, Lcom/vk/core/preference/Preference;->a()Landroid/content/SharedPreferences;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "identity_selected_email_id"
|
|
|
|
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic c(Lcom/vk/dto/identity/IdentityCardData$b;Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/vk/dto/identity/IdentityCardData$b;->c(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final c(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/json/JSONArray;",
|
|
")",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/vk/dto/common/Country;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 3
|
|
new-instance v1, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v1}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v3
|
|
|
|
:goto_0
|
|
if-ge v2, v3, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "this.getJSONObject(i)"
|
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
new-instance v5, Lcom/vk/dto/common/Country;
|
|
|
|
invoke-direct {v5}, Lcom/vk/dto/common/Country;-><init>()V
|
|
|
|
iput-object v5, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
.line 7
|
|
iget-object v5, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v5, Lcom/vk/dto/common/Country;
|
|
|
|
const-string v6, "id"
|
|
|
|
invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v6
|
|
|
|
iput v6, v5, Lcom/vk/dto/common/Country;->a:I
|
|
|
|
.line 8
|
|
iget-object v5, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v5, Lcom/vk/dto/common/Country;
|
|
|
|
const-string v6, "title"
|
|
|
|
invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
iput-object v4, v5, Lcom/vk/dto/common/Country;->b:Ljava/lang/String;
|
|
|
|
.line 9
|
|
iget-object v4, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v4, Lcom/vk/dto/common/Country;
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final c(I)V
|
|
.locals 2
|
|
|
|
.line 10
|
|
invoke-static {}, Lcom/vk/core/preference/Preference;->a()Landroid/content/SharedPreferences;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "identity_selected_phone_id"
|
|
|
|
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic d(Lcom/vk/dto/identity/IdentityCardData$b;Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/vk/dto/identity/IdentityCardData$b;->d(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final d(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/json/JSONArray;",
|
|
")",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/vk/dto/identity/IdentityEmail;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "this.getJSONObject(i)"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 5
|
|
new-instance v4, Lcom/vk/dto/identity/IdentityEmail;
|
|
|
|
invoke-direct {v4, v3}, Lcom/vk/dto/identity/IdentityEmail;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic e(Lcom/vk/dto/identity/IdentityCardData$b;Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/vk/dto/identity/IdentityCardData$b;->e(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final e(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/json/JSONArray;",
|
|
")",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/vk/dto/identity/IdentityLimit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "this.getJSONObject(i)"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 5
|
|
new-instance v4, Lcom/vk/dto/identity/IdentityLimit;
|
|
|
|
invoke-direct {v4, v3}, Lcom/vk/dto/identity/IdentityLimit;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic f(Lcom/vk/dto/identity/IdentityCardData$b;Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/vk/dto/identity/IdentityCardData$b;->f(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final f(Lorg/json/JSONArray;)Ljava/util/ArrayList;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lorg/json/JSONArray;",
|
|
")",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/vk/dto/identity/IdentityPhone;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "this.getJSONObject(i)"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 5
|
|
new-instance v4, Lcom/vk/dto/identity/IdentityPhone;
|
|
|
|
invoke-direct {v4, v3}, Lcom/vk/dto/identity/IdentityPhone;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;I)V
|
|
.locals 2
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
const v1, -0x4468640c
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const v1, 0x5c24b9c
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const v1, 0x65b3d6e
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "phone"
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-direct {p0, p2}, Lcom/vk/dto/identity/IdentityCardData$b;->c(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v0, "email"
|
|
|
|
.line 8
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-direct {p0, p2}, Lcom/vk/dto/identity/IdentityCardData$b;->b(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string v0, "address"
|
|
|
|
.line 9
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-direct {p0, p2}, Lcom/vk/dto/identity/IdentityCardData$b;->a(I)V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|