617 lines
15 KiB
Smali
617 lines
15 KiB
Smali
.class final Lcom/discord/utilities/analytics/AnalyticsTracker$getAppSnapshot$1;
|
|
.super Ljava/lang/Object;
|
|
.source "AnalyticsTracker.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Func9;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/analytics/AnalyticsTracker;->getAppSnapshot(Lcom/discord/models/domain/ModelChannel;)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T1:",
|
|
"Ljava/lang/Object;",
|
|
"T2:",
|
|
"Ljava/lang/Object;",
|
|
"T3:",
|
|
"Ljava/lang/Object;",
|
|
"T4:",
|
|
"Ljava/lang/Object;",
|
|
"T5:",
|
|
"Ljava/lang/Object;",
|
|
"T6:",
|
|
"Ljava/lang/Object;",
|
|
"T7:",
|
|
"Ljava/lang/Object;",
|
|
"T8:",
|
|
"Ljava/lang/Object;",
|
|
"T9:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Func9<",
|
|
"TT1;TT2;TT3;TT4;TT5;TT6;TT7;TT8;TT9;TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker$getAppSnapshot$1;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/utilities/analytics/AnalyticsTracker$getAppSnapshot$1;
|
|
|
|
invoke-direct {v0}, Lcom/discord/utilities/analytics/AnalyticsTracker$getAppSnapshot$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/utilities/analytics/AnalyticsTracker$getAppSnapshot$1;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker$getAppSnapshot$1;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/lang/Long;
|
|
|
|
check-cast p2, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
check-cast p3, Ljava/util/Map;
|
|
|
|
check-cast p4, Ljava/lang/Integer;
|
|
|
|
check-cast p5, Ljava/util/Map;
|
|
|
|
check-cast p6, Lcom/discord/models/domain/ModelGuild;
|
|
|
|
check-cast p7, Ljava/util/Map;
|
|
|
|
check-cast p8, Ljava/util/Map;
|
|
|
|
check-cast p9, Ljava/lang/Integer;
|
|
|
|
invoke-virtual/range {p0 .. p9}, Lcom/discord/utilities/analytics/AnalyticsTracker$getAppSnapshot$1;->call(Ljava/lang/Long;Lcom/discord/models/domain/ModelChannel;Ljava/util/Map;Ljava/lang/Integer;Ljava/util/Map;Lcom/discord/models/domain/ModelGuild;Ljava/util/Map;Ljava/util/Map;Ljava/lang/Integer;)Ljava/util/Map;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final call(Ljava/lang/Long;Lcom/discord/models/domain/ModelChannel;Ljava/util/Map;Ljava/lang/Integer;Ljava/util/Map;Lcom/discord/models/domain/ModelGuild;Ljava/util/Map;Ljava/util/Map;Ljava/lang/Integer;)Ljava/util/Map;
|
|
.locals 14
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
">;",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelPresence;",
|
|
">;",
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
|
">;",
|
|
"Ljava/lang/Integer;",
|
|
")",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p2
|
|
|
|
move-object/from16 v1, p8
|
|
|
|
const-string v2, "channel"
|
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v2, "guildChannels"
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
invoke-static {v3, v2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v2, "channelPresences"
|
|
|
|
move-object/from16 v4, p5
|
|
|
|
invoke-static {v4, v2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v2, "guildRoles"
|
|
|
|
move-object/from16 v5, p7
|
|
|
|
invoke-static {v5, v2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v2, "guildMembers"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v2, Lkotlin/jvm/internal/y;
|
|
|
|
const/4 v6, 0x3
|
|
|
|
invoke-direct {v2, v6}, Lkotlin/jvm/internal/y;-><init>(I)V
|
|
|
|
sget-object v6, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
|
|
|
invoke-static {v6, v0}, Lcom/discord/utilities/analytics/AnalyticsTracker;->access$getProperties$p(Lcom/discord/utilities/analytics/AnalyticsTracker;Lcom/discord/models/domain/ModelChannel;)[Lkotlin/Pair;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v2, v6}, Lkotlin/jvm/internal/y;->bc(Ljava/lang/Object;)V
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v7
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-virtual/range {p4 .. p4}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v8
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v8, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v9, "channel_member_perms"
|
|
|
|
invoke-static {v9, v8}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v2, v8}, Lkotlin/jvm/internal/y;->add(Ljava/lang/Object;)V
|
|
|
|
invoke-interface/range {p5 .. p5}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljava/lang/Iterable;
|
|
|
|
instance-of v8, v4, Ljava/util/Collection;
|
|
|
|
const/4 v9, 0x1
|
|
|
|
if-eqz v8, :cond_1
|
|
|
|
move-object v8, v4
|
|
|
|
check-cast v8, Ljava/util/Collection;
|
|
|
|
invoke-interface {v8}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_1
|
|
|
|
const/4 v8, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_4
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Lcom/discord/models/domain/ModelPresence;
|
|
|
|
invoke-virtual {v10}, Lcom/discord/models/domain/ModelPresence;->getStatus()I
|
|
|
|
move-result v10
|
|
|
|
const/4 v11, 0x4
|
|
|
|
if-ne v10, v11, :cond_3
|
|
|
|
const/4 v10, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v10, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v10, :cond_2
|
|
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
if-gez v8, :cond_2
|
|
|
|
invoke-static {}, Lkotlin/a/m;->DU()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
:goto_3
|
|
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v8, "channel_size_online"
|
|
|
|
invoke-static {v8, v4}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v2, v4}, Lkotlin/jvm/internal/y;->add(Ljava/lang/Object;)V
|
|
|
|
iget-object v4, v2, Lkotlin/jvm/internal/y;->bkw:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v4}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v4
|
|
|
|
new-array v4, v4, [Lkotlin/Pair;
|
|
|
|
invoke-virtual {v2, v4}, Lkotlin/jvm/internal/y;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, [Lkotlin/Pair;
|
|
|
|
invoke-static {v2}, Lkotlin/a/ad;->b([Lkotlin/Pair;)Ljava/util/Map;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelChannel;->getPermissionOverwrites()Ljava/util/Map;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v4, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/discord/models/domain/ModelPermissionOverwrite;
|
|
|
|
const/16 v8, 0x400
|
|
|
|
invoke-static {v4, v8}, Lcom/discord/models/domain/ModelPermissionOverwrite;->denies(Lcom/discord/models/domain/ModelPermissionOverwrite;I)Z
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v8, "channel_hidden"
|
|
|
|
invoke-interface {v2, v8, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
move-result-wide v10
|
|
|
|
const-wide/16 v12, 0x0
|
|
|
|
cmp-long v4, v10, v12
|
|
|
|
if-lez v4, :cond_5
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v4, "guild_id"
|
|
|
|
invoke-interface {v2, v4, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_5
|
|
if-eqz p6, :cond_10
|
|
|
|
invoke-interface/range {p3 .. p3}, Ljava/util/Map;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v4, 0x2
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
const/4 v8, 0x0
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
invoke-interface/range {p3 .. p3}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:cond_7
|
|
:goto_4
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_9
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Ljava/util/Map$Entry;
|
|
|
|
invoke-interface {v10}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v10}, Lcom/discord/models/domain/ModelChannel;->getType()I
|
|
|
|
move-result v10
|
|
|
|
if-ne v10, v4, :cond_8
|
|
|
|
const/4 v10, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
const/4 v10, 0x0
|
|
|
|
:goto_5
|
|
if-eqz v10, :cond_7
|
|
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
:goto_6
|
|
invoke-interface/range {p3 .. p3}, Ljava/util/Map;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
goto :goto_9
|
|
|
|
:cond_a
|
|
invoke-interface/range {p3 .. p3}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:cond_b
|
|
:goto_7
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_d
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Ljava/util/Map$Entry;
|
|
|
|
invoke-interface {v10}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v10}, Lcom/discord/models/domain/ModelChannel;->getType()I
|
|
|
|
move-result v10
|
|
|
|
if-eq v10, v4, :cond_c
|
|
|
|
const/4 v10, 0x1
|
|
|
|
goto :goto_8
|
|
|
|
:cond_c
|
|
const/4 v10, 0x0
|
|
|
|
:goto_8
|
|
if-eqz v10, :cond_b
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_d
|
|
move v6, v3
|
|
|
|
:goto_9
|
|
invoke-interface/range {p8 .. p8}, Ljava/util/Map;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v3, "guild_size_total"
|
|
|
|
invoke-interface {v2, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-object v0, p1
|
|
|
|
invoke-interface {v1, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_a
|
|
|
|
:cond_e
|
|
move-object v0, v7
|
|
|
|
:goto_a
|
|
const-string v1, "guild_member_num_roles"
|
|
|
|
invoke-interface {v2, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
add-int v0, v6, v8
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "guild_num_channels"
|
|
|
|
invoke-interface {v2, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "guild_num_text_channels"
|
|
|
|
invoke-interface {v2, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "guild_num_voice_channels"
|
|
|
|
invoke-interface {v2, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-interface/range {p7 .. p7}, Ljava/util/Map;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "guild_num_roles"
|
|
|
|
invoke-interface {v2, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
if-nez p9, :cond_f
|
|
|
|
goto :goto_b
|
|
|
|
:cond_f
|
|
move-object/from16 v7, p9
|
|
|
|
:goto_b
|
|
const-string v0, "guild_member_perms"
|
|
|
|
invoke-interface {v2, v0, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual/range {p6 .. p6}, Lcom/discord/models/domain/ModelGuild;->isVip()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "guild_is_vip"
|
|
|
|
invoke-interface {v2, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_10
|
|
return-object v2
|
|
.end method
|