827 lines
26 KiB
Smali
827 lines
26 KiB
Smali
.class public final Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;
|
|
.super Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState;
|
|
.source "SettingsPremiumViewModel.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Loaded"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final entitlements:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/models/domain/ModelEntitlement;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final guildSubscriptions:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
.field public final invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
.field public final isBusy:Z
|
|
|
|
.field public final paymentSources:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/models/domain/ModelPaymentSource;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
.field public final subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelSubscription;Ljava/util/List;ZLcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;Ljava/util/List;Ljava/util/Map;ZLcom/discord/models/domain/billing/ModelInvoicePreview;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/models/domain/ModelSubscription;",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelPaymentSource;",
|
|
">;Z",
|
|
"Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/models/domain/ModelEntitlement;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;",
|
|
">;Z",
|
|
"Lcom/discord/models/domain/billing/ModelInvoicePreview;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->paymentSources:Ljava/util/List;
|
|
|
|
iput-boolean p3, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->isBusy:Z
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->entitlements:Ljava/util/List;
|
|
|
|
iput-object p6, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->guildSubscriptions:Ljava/util/Map;
|
|
|
|
iput-boolean p7, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
iput-object p8, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "guildSubscriptions"
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "entitlements"
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "paymentSources"
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;Lcom/discord/models/domain/ModelSubscription;Ljava/util/List;ZLcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;Ljava/util/List;Ljava/util/Map;ZLcom/discord/models/domain/billing/ModelInvoicePreview;ILjava/lang/Object;)Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;
|
|
.locals 9
|
|
|
|
move-object v0, p0
|
|
|
|
move/from16 v1, p9
|
|
|
|
and-int/lit8 v2, v1, 0x1
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget-object v2, v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v2, p1
|
|
|
|
:goto_0
|
|
and-int/lit8 v3, v1, 0x2
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
iget-object v3, v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->paymentSources:Ljava/util/List;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object v3, p2
|
|
|
|
:goto_1
|
|
and-int/lit8 v4, v1, 0x4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
iget-boolean v4, v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->isBusy:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v4, p3
|
|
|
|
:goto_2
|
|
and-int/lit8 v5, v1, 0x8
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
iget-object v5, v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object v5, p4
|
|
|
|
:goto_3
|
|
and-int/lit8 v6, v1, 0x10
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
iget-object v6, v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->entitlements:Ljava/util/List;
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-object v6, p5
|
|
|
|
:goto_4
|
|
and-int/lit8 v7, v1, 0x20
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
iget-object v7, v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->guildSubscriptions:Ljava/util/Map;
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
move-object v7, p6
|
|
|
|
:goto_5
|
|
and-int/lit8 v8, v1, 0x40
|
|
|
|
if-eqz v8, :cond_6
|
|
|
|
iget-boolean v8, v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
move/from16 v8, p7
|
|
|
|
:goto_6
|
|
and-int/lit16 v1, v1, 0x80
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
goto :goto_7
|
|
|
|
:cond_7
|
|
move-object/from16 v1, p8
|
|
|
|
:goto_7
|
|
move-object p1, v2
|
|
|
|
move-object p2, v3
|
|
|
|
move p3, v4
|
|
|
|
move-object p4, v5
|
|
|
|
move-object p5, v6
|
|
|
|
move-object p6, v7
|
|
|
|
move/from16 p7, v8
|
|
|
|
move-object/from16 p8, v1
|
|
|
|
invoke-virtual/range {p0 .. p8}, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->copy(Lcom/discord/models/domain/ModelSubscription;Ljava/util/List;ZLcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;Ljava/util/List;Ljava/util/Map;ZLcom/discord/models/domain/billing/ModelInvoicePreview;)Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final component1()Lcom/discord/models/domain/ModelSubscription;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component2()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/models/domain/ModelPaymentSource;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->paymentSources:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component3()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->isBusy:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component4()Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component5()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/models/domain/ModelEntitlement;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->entitlements:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component6()Ljava/util/Map;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->guildSubscriptions:Ljava/util/Map;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component7()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component8()Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final copy(Lcom/discord/models/domain/ModelSubscription;Ljava/util/List;ZLcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;Ljava/util/List;Ljava/util/Map;ZLcom/discord/models/domain/billing/ModelInvoicePreview;)Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/models/domain/ModelSubscription;",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelPaymentSource;",
|
|
">;Z",
|
|
"Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/models/domain/ModelEntitlement;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;",
|
|
">;Z",
|
|
"Lcom/discord/models/domain/billing/ModelInvoicePreview;",
|
|
")",
|
|
"Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v2, p1
|
|
|
|
move-object v3, p2
|
|
|
|
move v4, p3
|
|
|
|
move-object v5, p4
|
|
|
|
move-object v6, p5
|
|
|
|
move-object/from16 v7, p6
|
|
|
|
move/from16 v8, p7
|
|
|
|
move-object/from16 v9, p8
|
|
|
|
invoke-direct/range {v1 .. v9}, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;-><init>(Lcom/discord/models/domain/ModelSubscription;Ljava/util/List;ZLcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;Ljava/util/List;Ljava/util/Map;ZLcom/discord/models/domain/billing/ModelInvoicePreview;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v1, "guildSubscriptions"
|
|
|
|
invoke-static {v1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string v1, "entitlements"
|
|
|
|
invoke-static {v1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string v1, "paymentSources"
|
|
|
|
invoke-static {v1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
if-eq p0, p1, :cond_1
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
invoke-static {v0, v1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->paymentSources:Ljava/util/List;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->paymentSources:Ljava/util/List;
|
|
|
|
invoke-static {v0, v1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->isBusy:Z
|
|
|
|
iget-boolean v1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->isBusy:Z
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
invoke-static {v0, v1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->entitlements:Ljava/util/List;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->entitlements:Ljava/util/List;
|
|
|
|
invoke-static {v0, v1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->guildSubscriptions:Ljava/util/Map;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->guildSubscriptions:Ljava/util/Map;
|
|
|
|
invoke-static {v0, v1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
iget-boolean v1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
iget-object p1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
invoke-static {v0, p1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getEntitlements()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/models/domain/ModelEntitlement;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->entitlements:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getGuildSubscriptions()Ljava/util/Map;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->guildSubscriptions:Ljava/util/Map;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getHasAnyPremiumGuildSubscriptions()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getInvoicePreview()Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getPaymentSources()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/models/domain/ModelPaymentSource;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->paymentSources:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getPremiumSubscription()Lcom/discord/models/domain/ModelSubscription;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getSubscriptionError()Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelSubscription;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->paymentSources:Ljava/util/List;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-boolean v2, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->isBusy:Z
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:cond_2
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v2, 0x0
|
|
|
|
:goto_2
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->entitlements:Ljava/util/List;
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
const/4 v2, 0x0
|
|
|
|
:goto_3
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->guildSubscriptions:Ljava/util/Map;
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
const/4 v2, 0x0
|
|
|
|
:goto_4
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-boolean v2, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
goto :goto_5
|
|
|
|
:cond_6
|
|
move v3, v2
|
|
|
|
:goto_5
|
|
add-int/2addr v0, v3
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/billing/ModelInvoicePreview;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
:cond_7
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isBusy()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->isBusy:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const-string v0, "Loaded(premiumSubscription="
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->premiumSubscription:Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", paymentSources="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->paymentSources:Ljava/util/List;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", isBusy="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->isBusy:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", subscriptionError="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->subscriptionError:Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$SubscriptionError;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", entitlements="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->entitlements:Ljava/util/List;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", guildSubscriptions="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->guildSubscriptions:Ljava/util/Map;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", hasAnyPremiumGuildSubscriptions="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->hasAnyPremiumGuildSubscriptions:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", invoicePreview="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$ViewState$Loaded;->invoicePreview:Lcom/discord/models/domain/billing/ModelInvoicePreview;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ")"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|