2019-10-01 14:15:45 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model$Companion;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
2019-10-01 14:15:45 +00:00
|
|
|
.source "WidgetSettingsPremiumGuildSubscription.kt"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2019-10-01 14:15:45 +00:00
|
|
|
value = Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model;
|
2019-07-24 11:27:29 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Companion"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model$Companion;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
.method public static final synthetic access$createBoostItems(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model$Companion;Lcom/discord/stores/StorePremiumGuildSubscription$State$Loaded;Ljava/util/Map;Z)Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model$Companion;->createBoostItems(Lcom/discord/stores/StorePremiumGuildSubscription$State$Loaded;Ljava/util/Map;Z)Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
.method private final createBoostItems(Lcom/discord/stores/StorePremiumGuildSubscription$State$Loaded;Ljava/util/Map;Z)Ljava/util/List;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 12
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/stores/StorePremiumGuildSubscription$State$Loaded;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"+",
|
|
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
2019-10-31 00:47:18 +00:00
|
|
|
">;Z)",
|
2019-07-24 11:27:29 +00:00
|
|
|
"Ljava/util/List<",
|
2019-10-01 14:15:45 +00:00
|
|
|
"Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;",
|
2019-07-24 11:27:29 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StorePremiumGuildSubscription$State$Loaded;->getPremiumGuildSubscriptionSlots()Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object p1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
:cond_0
|
|
|
|
:goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v5, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v3, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-object v6, v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
check-cast v6, Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;->getPremiumGuildSubscription()Lcom/discord/models/domain/ModelPremiumGuildSubscription;
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v6
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v6, :cond_1
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v4, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v4, :cond_0
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v1, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-wide v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v6, Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v7
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
:cond_3
|
2019-10-31 00:47:18 +00:00
|
|
|
:goto_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v8
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v8, :cond_5
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v8
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-object v9, v8
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
check-cast v9, Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v9}, Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;->getCooldownExpiresAtTimestamp()J
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-wide v9
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
cmp-long v11, v9, v2
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-gtz v11, :cond_4
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v9, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v9, 0x0
|
2019-10-31 00:47:18 +00:00
|
|
|
|
|
|
|
:goto_2
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v9, :cond_3
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v6, v8}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
goto :goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
:cond_5
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v2
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
xor-int/2addr v2, v5
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_c
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v6}, Ljava/util/List;->isEmpty()Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v2
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v3, 0x0
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_a
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v7, 0xa
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v1, v7}, Le/k/a/b/e/p/g;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v7
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v2, v7}, Ljava/util/ArrayList;-><init>(I)V
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_3
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v8
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v8, :cond_6
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v8
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
check-cast v8, Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v8}, Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;->getCooldownExpiresAtTimestamp()J
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-wide v8
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v8
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v2, v8}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v2
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v7
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v7, :cond_7
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_5
|
2019-10-31 00:47:18 +00:00
|
|
|
|
|
|
|
:cond_7
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v3
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
check-cast v3, Ljava/lang/Comparable;
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_4
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
move-result v7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v7, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
check-cast v7, Ljava/lang/Comparable;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v3, v7}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v8
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-lez v8, :cond_8
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-object v3, v7
|
|
|
|
|
|
|
|
goto :goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
:cond_9
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_5
|
|
|
|
check-cast v3, Ljava/lang/Long;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_a
|
|
|
|
sget-object v2, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;->Companion:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem$Companion;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v6}, Ljava/util/List;->isEmpty()Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v7
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v7, :cond_b
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v7, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_b
|
|
|
|
invoke-interface {v1}, Ljava/util/Collection;->size()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v7
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_6
|
|
|
|
invoke-virtual {v2, v3, v7}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem$Companion;->createBoostInfoItem(Ljava/lang/Long;I)Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
invoke-interface {v6}, Ljava/util/Collection;->isEmpty()Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
xor-int/2addr v2, v5
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_d
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;->Companion:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem$Companion;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1, v5}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem$Companion;->createAvailableBoostItem(Z)Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v1
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_7
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_d
|
|
|
|
invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v1
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
xor-int/2addr v1, v5
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_e
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;->Companion:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem$Companion;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1, v4}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem$Companion;->createAvailableBoostItem(Z)Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v1
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_e
|
|
|
|
:goto_7
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object p1
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_f
|
|
|
|
:goto_8
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v2
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_10
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v2
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelPremiumGuildSubscriptionSlot;->getPremiumGuildSubscription()Lcom/discord/models/domain/ModelPremiumGuildSubscription;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v2
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_f
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_8
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_10
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object p1
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_9
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v1
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_11
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v1
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelPremiumGuildSubscription;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sget-object v2, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;->Companion:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem$Companion;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelPremiumGuildSubscription;->getGuildId()J
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-wide v3
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v3
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {p2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v3
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
check-cast v3, Lcom/discord/models/domain/ModelGuild;
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v2, v1, v3, p3}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem$Companion;->createBoostedGuildItem(Lcom/discord/models/domain/ModelPremiumGuildSubscription;Lcom/discord/models/domain/ModelGuild;Z)Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscriptionAdapter$PremiumGuildSubscriptionItem;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_9
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
return-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final get()Lrx/Observable;
|
2019-10-31 00:47:18 +00:00
|
|
|
.locals 5
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
2019-10-01 14:15:45 +00:00
|
|
|
"Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model;",
|
2019-07-24 11:27:29 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getPremiumGuildSubscriptions()Lcom/discord/stores/StorePremiumGuildSubscription;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
invoke-static {v0, v1, v2, v1}, Lcom/discord/stores/StorePremiumGuildSubscription;->getPremiumGuildSubscriptionsState$default(Lcom/discord/stores/StorePremiumGuildSubscription;Ljava/lang/Long;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
sget-object v2, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model$Companion$get$1;->INSTANCE:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model$Companion$get$1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-virtual {v0, v2}, Lrx/Observable;->k(Lu/l/i;)Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
const-string v2, "StoreStream\n \u2026 }\n }"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-static {v0, v2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
sget-object v2, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "2019-10_android_premium_changes"
|
|
|
|
|
|
|
|
const/4 v4, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
invoke-static {v2, v3, v1, v4, v1}, Lcom/discord/stores/StoreExperiments;->getExperiment$default(Lcom/discord/stores/StoreExperiments;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
sget-object v2, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model$Companion$get$2;->INSTANCE:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumGuildSubscription$Model$Companion$get$2;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-static {v0, v1, v2}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Observable.combineLatest\u2026ure\n }\n }"
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-static {v0, v1}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|