2877 lines
64 KiB
Smali
2877 lines
64 KiB
Smali
.class public final Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "AuditLogUtils.kt"
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final ALL_ACTION_TYPES$delegate:Lkotlin/Lazy;
|
|
|
|
.field public static final INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Lz/u/b/u;
|
|
|
|
const-class v2, Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-static {v2}, Lz/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Lz/y/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "ALL_ACTION_TYPES"
|
|
|
|
const-string v4, "getALL_ACTION_TYPES()Ljava/util/List;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lz/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v2, Lz/u/b/x;->a:Lz/u/b/y;
|
|
|
|
invoke-virtual {v2, v1}, Lz/u/b/y;->property1(Lz/u/b/t;)Lz/y/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sput-object v0, Lcom/discord/utilities/auditlogs/AuditLogUtils;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v0}, Lcom/discord/utilities/auditlogs/AuditLogUtils;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
sget-object v0, Lcom/discord/utilities/auditlogs/AuditLogUtils$ALL_ACTION_TYPES$2;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils$ALL_ACTION_TYPES$2;
|
|
|
|
invoke-static {v0}, Lf/n/a/j/a;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/discord/utilities/auditlogs/AuditLogUtils;->ALL_ACTION_TYPES$delegate:Lkotlin/Lazy;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
.locals 6
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_7
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
packed-switch v0, :pswitch_data_1
|
|
|
|
packed-switch v0, :pswitch_data_2
|
|
|
|
packed-switch v0, :pswitch_data_3
|
|
|
|
packed-switch v0, :pswitch_data_4
|
|
|
|
packed-switch v0, :pswitch_data_5
|
|
|
|
packed-switch v0, :pswitch_data_6
|
|
|
|
packed-switch v0, :pswitch_data_7
|
|
|
|
sget-object v0, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog;
|
|
|
|
const-string v1, "Unknown audit log action type: "
|
|
|
|
invoke-static {v1}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x6
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
const p1, 0x7f120956
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_0
|
|
const p1, 0x7f1208e2
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_1
|
|
const p1, 0x7f1208e3
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_2
|
|
const p1, 0x7f1208e1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_3
|
|
const p1, 0x7f1208dc
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_4
|
|
const p1, 0x7f1208ef
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_5
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v2, v1
|
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
const-string v3, "it"
|
|
|
|
invoke-static {v2, v3}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "type"
|
|
|
|
invoke-static {v2, v3}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
move-object v0, v1
|
|
|
|
:cond_1
|
|
check-cast v0, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
:cond_2
|
|
if-nez v0, :cond_3
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_3
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getNewValue()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
check-cast p1, Ljava/lang/Long;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int p1, v0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p1, v0, :cond_5
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-eq p1, v0, :cond_4
|
|
|
|
const p1, 0x7f1208ea
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_4
|
|
const p1, 0x7f1208db
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_5
|
|
const p1, 0x7f1208f0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_6
|
|
new-instance p1, Lz/l;
|
|
|
|
const-string v0, "null cannot be cast to non-null type kotlin.Long"
|
|
|
|
invoke-direct {p1, v0}, Lz/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:pswitch_6
|
|
const p1, 0x7f1208d8
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_7
|
|
const p1, 0x7f120935
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_8
|
|
const p1, 0x7f120937
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_9
|
|
const p1, 0x7f12093f
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_a
|
|
const p1, 0x7f120942
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_b
|
|
const p1, 0x7f120932
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_c
|
|
const p1, 0x7f120931
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_d
|
|
const p1, 0x7f12093d
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_e
|
|
const p1, 0x7f120936
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_f
|
|
const p1, 0x7f12094b
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_10
|
|
const p1, 0x7f120954
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_11
|
|
const p1, 0x7f12094a
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_12
|
|
const p1, 0x7f120928
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_13
|
|
const p1, 0x7f12092f
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_14
|
|
const p1, 0x7f120927
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_15
|
|
const p1, 0x7f12095b
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_16
|
|
const p1, 0x7f12095e
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_17
|
|
const p1, 0x7f12095a
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_18
|
|
const p1, 0x7f1208f3
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_19
|
|
const p1, 0x7f1208f6
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1a
|
|
const p1, 0x7f1208f2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1b
|
|
const p1, 0x7f120946
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1c
|
|
const p1, 0x7f120945
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1d
|
|
const p1, 0x7f120943
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1e
|
|
const p1, 0x7f120944
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1f
|
|
const p1, 0x7f12091e
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_20
|
|
const p1, 0x7f120924
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_21
|
|
const p1, 0x7f12091d
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
const p1, 0x7f12090f
|
|
|
|
:goto_0
|
|
return p1
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0xa
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
|
|
:pswitch_data_1
|
|
.packed-switch 0x14
|
|
:pswitch_e
|
|
:pswitch_d
|
|
:pswitch_c
|
|
:pswitch_b
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
.end packed-switch
|
|
|
|
:pswitch_data_2
|
|
.packed-switch 0x1e
|
|
:pswitch_11
|
|
:pswitch_10
|
|
:pswitch_f
|
|
.end packed-switch
|
|
|
|
:pswitch_data_3
|
|
.packed-switch 0x28
|
|
:pswitch_14
|
|
:pswitch_13
|
|
:pswitch_12
|
|
.end packed-switch
|
|
|
|
:pswitch_data_4
|
|
.packed-switch 0x32
|
|
:pswitch_17
|
|
:pswitch_16
|
|
:pswitch_15
|
|
.end packed-switch
|
|
|
|
:pswitch_data_5
|
|
.packed-switch 0x3c
|
|
:pswitch_1a
|
|
:pswitch_19
|
|
:pswitch_18
|
|
.end packed-switch
|
|
|
|
:pswitch_data_6
|
|
.packed-switch 0x48
|
|
:pswitch_1e
|
|
:pswitch_1d
|
|
:pswitch_1c
|
|
:pswitch_1b
|
|
.end packed-switch
|
|
|
|
:pswitch_data_7
|
|
.packed-switch 0x50
|
|
:pswitch_21
|
|
:pswitch_20
|
|
:pswitch_1f
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static synthetic getHeaderString$default(Lcom/discord/utilities/auditlogs/AuditLogUtils;Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Landroid/content/Context;Ljava/util/Map;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
|
.locals 6
|
|
|
|
and-int/lit8 p6, p6, 0x10
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
const-string p5, ""
|
|
|
|
:cond_0
|
|
move-object v5, p5
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v3, p3
|
|
|
|
move-object v4, p4
|
|
|
|
invoke-virtual/range {v0 .. v5}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getHeaderString(Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Landroid/content/Context;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final getTargetText(Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result p2
|
|
|
|
const/16 v0, 0xc
|
|
|
|
const-string v1, "name"
|
|
|
|
const-string v2, "it"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne p2, v0, :cond_4
|
|
|
|
invoke-static {p3}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
move-object v0, p3
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {v0, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move-object p3, v3
|
|
|
|
:goto_0
|
|
check-cast p3, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getOldValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_3
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_4
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result p2
|
|
|
|
const/16 v0, 0xa
|
|
|
|
if-ne p2, v0, :cond_8
|
|
|
|
invoke-static {p3}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_5
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_6
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
move-object v0, p3
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {v0, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
move-object p3, v3
|
|
|
|
:goto_1
|
|
check-cast p3, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
if-eqz p3, :cond_7
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getNewValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_7
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_8
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result p2
|
|
|
|
const/16 v0, 0xb
|
|
|
|
if-ne p2, v0, :cond_c
|
|
|
|
invoke-static {p3}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_b
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_9
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_a
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
move-object v0, p3
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {v0, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
move-object p3, v3
|
|
|
|
:goto_2
|
|
check-cast p3, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
if-eqz p3, :cond_b
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_b
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_c
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetType()Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object p3, Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;->ROLE:Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
if-ne p2, p3, :cond_11
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_d
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getRoleName()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_d
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_d
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_10
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_e
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_f
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
move-object p3, p2
|
|
|
|
check-cast p3, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {p3, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p3, v1}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_e
|
|
|
|
goto :goto_3
|
|
|
|
:cond_f
|
|
move-object p2, v3
|
|
|
|
:goto_3
|
|
check-cast p2, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
if-eqz p2, :cond_10
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_10
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_11
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetType()Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object p3, Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;->INVITE:Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
if-ne p2, p3, :cond_15
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_14
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_12
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_13
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
move-object p3, p2
|
|
|
|
check-cast p3, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {p3, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
const-string v0, "code"
|
|
|
|
invoke-static {p3, v0}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_12
|
|
|
|
goto :goto_4
|
|
|
|
:cond_13
|
|
move-object p2, v3
|
|
|
|
:goto_4
|
|
check-cast p2, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
if-eqz p2, :cond_14
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getNewValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_14
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_15
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result p2
|
|
|
|
const/16 p3, 0x32
|
|
|
|
if-ne p2, p3, :cond_19
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_18
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_16
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_17
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
move-object p3, p2
|
|
|
|
check-cast p3, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {p3, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p3, v1}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_16
|
|
|
|
goto :goto_5
|
|
|
|
:cond_17
|
|
move-object p2, v3
|
|
|
|
:goto_5
|
|
check-cast p2, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
if-eqz p2, :cond_18
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_18
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_19
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result p2
|
|
|
|
const/16 p3, 0x50
|
|
|
|
const-string v0, "type"
|
|
|
|
if-ne p2, p3, :cond_1d
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1c
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_1a
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1b
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
move-object p3, p2
|
|
|
|
check-cast p3, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {p3, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p3, v0}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_1a
|
|
|
|
goto :goto_6
|
|
|
|
:cond_1b
|
|
move-object p2, v3
|
|
|
|
:goto_6
|
|
check-cast p2, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
if-eqz p2, :cond_1c
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_1c
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto :goto_8
|
|
|
|
:cond_1d
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result p2
|
|
|
|
const/16 p3, 0x52
|
|
|
|
if-ne p2, p3, :cond_21
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_20
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_1e
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1f
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
move-object p3, p2
|
|
|
|
check-cast p3, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {p3, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p3, v0}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_1e
|
|
|
|
goto :goto_7
|
|
|
|
:cond_1f
|
|
move-object p2, v3
|
|
|
|
:goto_7
|
|
check-cast p2, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
if-eqz p2, :cond_20
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_20
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto :goto_8
|
|
|
|
:cond_21
|
|
const-string p2, ""
|
|
|
|
:goto_8
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public static synthetic getTargetText$default(Lcom/discord/utilities/auditlogs/AuditLogUtils;Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
const-string p3, ""
|
|
|
|
:cond_0
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTargetText(Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final getTimestampText(JLandroid/content/Context;)Ljava/lang/CharSequence;
|
|
.locals 10
|
|
|
|
invoke-static {}, Lcom/discord/utilities/time/ClockFactory;->get()Lcom/discord/utilities/time/Clock;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
move-result-wide v1
|
|
|
|
sub-long/2addr v1, p1
|
|
|
|
invoke-interface {v0}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
move-result-wide v5
|
|
|
|
const v9, 0x20014
|
|
|
|
const-wide/32 v7, 0x5265c00
|
|
|
|
move-wide v3, p1
|
|
|
|
invoke-static/range {v3 .. v9}, Landroid/text/format/DateUtils;->getRelativeTimeSpanString(JJJI)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v3, v1, v2}, Ljava/util/concurrent/TimeUnit;->toDays(J)J
|
|
|
|
move-result-wide v1
|
|
|
|
const/4 v3, 0x7
|
|
|
|
int-to-long v3, v3
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-gez v5, :cond_0
|
|
|
|
const v1, 0x7f120955
|
|
|
|
const/4 v2, 0x2
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-static {p3, p1, p2, v0}, Landroid/text/format/DateUtils;->formatDateTime(Landroid/content/Context;JI)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v2, v0
|
|
|
|
invoke-virtual {p3, v1, v2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string p1, "context.getString(\n \u2026RMAT_SHOW_TIME)\n )"
|
|
|
|
invoke-static {v0, p1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p1, "timeString"
|
|
|
|
invoke-static {v0, p1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getALL_ACTION_TYPES()Ljava/util/List;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/discord/utilities/auditlogs/AuditLogUtils;->ALL_ACTION_TYPES$delegate:Lkotlin/Lazy;
|
|
|
|
sget-object v1, Lcom/discord/utilities/auditlogs/AuditLogUtils;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getActionName(I)I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
packed-switch p1, :pswitch_data_1
|
|
|
|
packed-switch p1, :pswitch_data_2
|
|
|
|
packed-switch p1, :pswitch_data_3
|
|
|
|
packed-switch p1, :pswitch_data_4
|
|
|
|
packed-switch p1, :pswitch_data_5
|
|
|
|
packed-switch p1, :pswitch_data_6
|
|
|
|
packed-switch p1, :pswitch_data_7
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_0
|
|
const p1, 0x7f1208c1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_1
|
|
const p1, 0x7f1208c2
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_2
|
|
const p1, 0x7f1208c0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_3
|
|
const p1, 0x7f1208d1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_4
|
|
const p1, 0x7f1208d0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_5
|
|
const p1, 0x7f1208ce
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_6
|
|
const p1, 0x7f1208cf
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_7
|
|
const p1, 0x7f1208bd
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_8
|
|
const p1, 0x7f1208be
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_9
|
|
const p1, 0x7f1208bc
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_a
|
|
const p1, 0x7f1208d6
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_b
|
|
const p1, 0x7f1208d7
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_c
|
|
const p1, 0x7f1208d5
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_d
|
|
const p1, 0x7f1208c4
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_e
|
|
const p1, 0x7f1208c5
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_f
|
|
const p1, 0x7f1208c3
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_10
|
|
const p1, 0x7f1208d3
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_11
|
|
const p1, 0x7f1208d4
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_12
|
|
const p1, 0x7f1208d2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_13
|
|
const p1, 0x7f1208b5
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_14
|
|
const p1, 0x7f1208c8
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_15
|
|
const p1, 0x7f1208ca
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_16
|
|
const p1, 0x7f1208cc
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_17
|
|
const p1, 0x7f1208cd
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_18
|
|
const p1, 0x7f1208c7
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_19
|
|
const p1, 0x7f1208c6
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1a
|
|
const p1, 0x7f1208cb
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1b
|
|
const p1, 0x7f1208c9
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1c
|
|
const p1, 0x7f1208b9
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1d
|
|
const p1, 0x7f1208ba
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1e
|
|
const p1, 0x7f1208b8
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1f
|
|
const p1, 0x7f1208b7
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_20
|
|
const p1, 0x7f1208bb
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_21
|
|
const p1, 0x7f1208b6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p1, 0x7f1208bf
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const p1, 0x7f1209ab
|
|
|
|
:goto_0
|
|
return p1
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0xa
|
|
:pswitch_21
|
|
:pswitch_20
|
|
:pswitch_1f
|
|
:pswitch_1e
|
|
:pswitch_1d
|
|
:pswitch_1c
|
|
.end packed-switch
|
|
|
|
:pswitch_data_1
|
|
.packed-switch 0x14
|
|
:pswitch_1b
|
|
:pswitch_1a
|
|
:pswitch_19
|
|
:pswitch_18
|
|
:pswitch_17
|
|
:pswitch_16
|
|
:pswitch_15
|
|
:pswitch_14
|
|
:pswitch_13
|
|
.end packed-switch
|
|
|
|
:pswitch_data_2
|
|
.packed-switch 0x1e
|
|
:pswitch_12
|
|
:pswitch_11
|
|
:pswitch_10
|
|
.end packed-switch
|
|
|
|
:pswitch_data_3
|
|
.packed-switch 0x28
|
|
:pswitch_f
|
|
:pswitch_e
|
|
:pswitch_d
|
|
.end packed-switch
|
|
|
|
:pswitch_data_4
|
|
.packed-switch 0x32
|
|
:pswitch_c
|
|
:pswitch_b
|
|
:pswitch_a
|
|
.end packed-switch
|
|
|
|
:pswitch_data_5
|
|
.packed-switch 0x3c
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
.end packed-switch
|
|
|
|
:pswitch_data_6
|
|
.packed-switch 0x48
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
.end packed-switch
|
|
|
|
:pswitch_data_7
|
|
.packed-switch 0x50
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public final getActionTypeImage(I)I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
|
|
invoke-static {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionType(I)Lcom/discord/models/domain/ModelAuditLogEntry$ActionType;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/discord/utilities/auditlogs/AuditLogUtils$WhenMappings;->$EnumSwitchMapping$1:[I
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result p1
|
|
|
|
aget p1, v0, p1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p1, v0, :cond_3
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const p1, 0x7f080234
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const p1, 0x7f080235
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const p1, 0x7f080233
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getHeaderString(Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Landroid/content/Context;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 18
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/models/domain/ModelAuditLogEntry;",
|
|
"Ljava/lang/String;",
|
|
"Landroid/content/Context;",
|
|
"Ljava/util/Map<",
|
|
"Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;",
|
|
"+",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/String;",
|
|
">;>;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Ljava/lang/String;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move-object/from16 v2, p3
|
|
|
|
move-object/from16 v3, p4
|
|
|
|
move-object/from16 v4, p5
|
|
|
|
if-eqz v1, :cond_25
|
|
|
|
if-eqz p2, :cond_24
|
|
|
|
if-eqz v2, :cond_23
|
|
|
|
if-eqz v3, :cond_22
|
|
|
|
if-eqz v4, :cond_21
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getActionTypeId()I
|
|
|
|
move-result v6
|
|
|
|
const/16 v7, 0x15
|
|
|
|
const/4 v8, 0x2
|
|
|
|
const/4 v9, 0x1
|
|
|
|
const/4 v10, 0x0
|
|
|
|
if-eq v6, v7, :cond_1e
|
|
|
|
const/16 v7, 0x2a
|
|
|
|
const-string v11, "it"
|
|
|
|
const-string v12, "Collection contains no element matching the predicate."
|
|
|
|
if-eq v6, v7, :cond_1a
|
|
|
|
const/16 v7, 0x1a
|
|
|
|
const/4 v13, 0x3
|
|
|
|
if-eq v6, v7, :cond_14
|
|
|
|
const/16 v7, 0x1b
|
|
|
|
if-eq v6, v7, :cond_11
|
|
|
|
packed-switch v6, :pswitch_data_0
|
|
|
|
packed-switch v6, :pswitch_data_1
|
|
|
|
sget-object v6, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v6, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v6
|
|
|
|
new-array v7, v8, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v7, v10
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetType()Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v3, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/util/Map;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetId()J
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
move-object v5, v3
|
|
|
|
check-cast v5, Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v5, 0x0
|
|
|
|
:goto_0
|
|
invoke-direct {v0, v1, v5, v4}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTargetText(Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v7, v9
|
|
|
|
invoke-virtual {v2, v6, v7}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto/16 :goto_16
|
|
|
|
:pswitch_0
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getChannelId()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v6, 0x0
|
|
|
|
:goto_1
|
|
sget-object v7, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v7, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v7
|
|
|
|
new-array v11, v13, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v11, v10
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetType()Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-interface {v3, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Ljava/util/Map;
|
|
|
|
if-eqz v10, :cond_2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetId()J
|
|
|
|
move-result-wide v12
|
|
|
|
invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-interface {v10, v12}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v10, 0x0
|
|
|
|
:goto_2
|
|
invoke-direct {v0, v1, v10, v4}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTargetText(Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v11, v9
|
|
|
|
sget-object v1, Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;->CHANNEL:Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
invoke-interface {v3, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/Map;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-interface {v1, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
move-object v5, v1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
if-eqz v6, :cond_4
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
const/4 v5, 0x0
|
|
|
|
:goto_3
|
|
aput-object v5, v11, v8
|
|
|
|
invoke-virtual {v2, v7, v11}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto/16 :goto_16
|
|
|
|
:pswitch_1
|
|
sget-object v6, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v6, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v6
|
|
|
|
new-array v7, v13, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v7, v10
|
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v11
|
|
|
|
const v12, 0x7f100075
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v13
|
|
|
|
if-eqz v13, :cond_5
|
|
|
|
invoke-virtual {v13}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getCount()I
|
|
|
|
move-result v13
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
const/4 v13, 0x0
|
|
|
|
:goto_4
|
|
new-array v14, v9, [Ljava/lang/Object;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v15
|
|
|
|
if-eqz v15, :cond_6
|
|
|
|
invoke-virtual {v15}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getCount()I
|
|
|
|
move-result v15
|
|
|
|
invoke-static {v15}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v15
|
|
|
|
goto :goto_5
|
|
|
|
:cond_6
|
|
invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v15
|
|
|
|
:goto_5
|
|
aput-object v15, v14, v10
|
|
|
|
invoke-virtual {v11, v12, v13, v14}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
aput-object v10, v7, v9
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetType()Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-interface {v3, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/util/Map;
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetId()J
|
|
|
|
move-result-wide v9
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
move-object v5, v3
|
|
|
|
check-cast v5, Ljava/lang/String;
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
const/4 v5, 0x0
|
|
|
|
:goto_6
|
|
invoke-direct {v0, v1, v5, v4}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTargetText(Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v7, v8
|
|
|
|
invoke-virtual {v2, v6, v7}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto/16 :goto_16
|
|
|
|
:pswitch_2
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_8
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getChannelId()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_7
|
|
|
|
:cond_8
|
|
const/4 v6, 0x0
|
|
|
|
:goto_7
|
|
sget-object v7, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v7, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v7
|
|
|
|
const/4 v11, 0x4
|
|
|
|
new-array v11, v11, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v11, v10
|
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v12
|
|
|
|
const v14, 0x7f100076
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v15
|
|
|
|
if-eqz v15, :cond_9
|
|
|
|
invoke-virtual {v15}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getCount()I
|
|
|
|
move-result v15
|
|
|
|
goto :goto_8
|
|
|
|
:cond_9
|
|
const/4 v15, 0x0
|
|
|
|
:goto_8
|
|
new-array v5, v9, [Ljava/lang/Object;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v17
|
|
|
|
if-eqz v17, :cond_a
|
|
|
|
invoke-virtual/range {v17 .. v17}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getCount()I
|
|
|
|
move-result v17
|
|
|
|
invoke-static/range {v17 .. v17}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v17
|
|
|
|
goto :goto_9
|
|
|
|
:cond_a
|
|
invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v17
|
|
|
|
:goto_9
|
|
aput-object v17, v5, v10
|
|
|
|
invoke-virtual {v12, v14, v15, v5}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v11, v9
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetType()Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/util/Map;
|
|
|
|
if-eqz v5, :cond_b
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetId()J
|
|
|
|
move-result-wide v9
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-interface {v5, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/lang/String;
|
|
|
|
goto :goto_a
|
|
|
|
:cond_b
|
|
const/4 v5, 0x0
|
|
|
|
:goto_a
|
|
invoke-direct {v0, v1, v5, v4}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTargetText(Lcom/discord/models/domain/ModelAuditLogEntry;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v11, v8
|
|
|
|
sget-object v1, Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;->CHANNEL:Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
invoke-interface {v3, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/Map;
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
invoke-interface {v1, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v5, v1
|
|
|
|
check-cast v5, Ljava/lang/String;
|
|
|
|
if-eqz v5, :cond_c
|
|
|
|
goto :goto_b
|
|
|
|
:cond_c
|
|
if-eqz v6, :cond_d
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_b
|
|
|
|
:cond_d
|
|
const/4 v5, 0x0
|
|
|
|
:goto_b
|
|
aput-object v5, v11, v13
|
|
|
|
invoke-virtual {v2, v7, v11}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto/16 :goto_16
|
|
|
|
:pswitch_3
|
|
sget-object v3, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v3, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v3
|
|
|
|
new-array v4, v8, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v4, v10
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_10
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_e
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_f
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {v5, v11}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "name"
|
|
|
|
invoke-static {v6, v7}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_e
|
|
|
|
if-eqz v5, :cond_10
|
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
move-object/from16 v16, v5
|
|
|
|
goto :goto_c
|
|
|
|
:cond_f
|
|
new-instance v1, Ljava/util/NoSuchElementException;
|
|
|
|
invoke-direct {v1, v12}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_10
|
|
const/16 v16, 0x0
|
|
|
|
:goto_c
|
|
invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v4, v9
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto/16 :goto_16
|
|
|
|
:cond_11
|
|
sget-object v3, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v3, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v3
|
|
|
|
new-array v4, v8, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v4, v10
|
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v5
|
|
|
|
const v6, 0x7f10006f
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v7
|
|
|
|
if-eqz v7, :cond_12
|
|
|
|
invoke-virtual {v7}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getCount()I
|
|
|
|
move-result v7
|
|
|
|
goto :goto_d
|
|
|
|
:cond_12
|
|
const/4 v7, 0x0
|
|
|
|
:goto_d
|
|
new-array v8, v9, [Ljava/lang/Object;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_13
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_e
|
|
|
|
:cond_13
|
|
invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_e
|
|
aput-object v1, v8, v10
|
|
|
|
invoke-virtual {v5, v6, v7, v8}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v4, v9
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto/16 :goto_16
|
|
|
|
:cond_14
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_15
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getChannelId()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_f
|
|
|
|
:cond_15
|
|
const/4 v5, 0x0
|
|
|
|
:goto_f
|
|
sget-object v4, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v4, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v4
|
|
|
|
new-array v6, v13, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v6, v10
|
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v7
|
|
|
|
const v11, 0x7f100070
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v12
|
|
|
|
if-eqz v12, :cond_16
|
|
|
|
invoke-virtual {v12}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getCount()I
|
|
|
|
move-result v12
|
|
|
|
goto :goto_10
|
|
|
|
:cond_16
|
|
const/4 v12, 0x0
|
|
|
|
:goto_10
|
|
new-array v13, v9, [Ljava/lang/Object;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_17
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_11
|
|
|
|
:cond_17
|
|
invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_11
|
|
aput-object v1, v13, v10
|
|
|
|
invoke-virtual {v7, v11, v12, v13}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v6, v9
|
|
|
|
sget-object v1, Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;->CHANNEL:Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
invoke-interface {v3, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/Map;
|
|
|
|
if-eqz v1, :cond_18
|
|
|
|
invoke-interface {v1, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_18
|
|
|
|
move-object/from16 v16, v1
|
|
|
|
goto :goto_12
|
|
|
|
:cond_18
|
|
if-eqz v5, :cond_19
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v9
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
move-object/from16 v16, v5
|
|
|
|
goto :goto_12
|
|
|
|
:cond_19
|
|
const/16 v16, 0x0
|
|
|
|
:goto_12
|
|
aput-object v16, v6, v8
|
|
|
|
invoke-virtual {v2, v4, v6}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto/16 :goto_16
|
|
|
|
:cond_1a
|
|
sget-object v3, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v3, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v3
|
|
|
|
new-array v4, v8, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v4, v10
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getChanges()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1d
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_1b
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_1c
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/discord/models/domain/ModelAuditLogEntry$Change;
|
|
|
|
invoke-static {v5, v11}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "code"
|
|
|
|
invoke-static {v6, v7}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1b
|
|
|
|
if-eqz v5, :cond_1d
|
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelAuditLogEntry$Change;->getOldValue()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
move-object/from16 v16, v5
|
|
|
|
goto :goto_13
|
|
|
|
:cond_1c
|
|
new-instance v1, Ljava/util/NoSuchElementException;
|
|
|
|
invoke-direct {v1, v12}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_1d
|
|
const/16 v16, 0x0
|
|
|
|
:goto_13
|
|
invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v4, v9
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_16
|
|
|
|
:cond_1e
|
|
sget-object v3, Lcom/discord/utilities/auditlogs/AuditLogUtils;->INSTANCE:Lcom/discord/utilities/auditlogs/AuditLogUtils;
|
|
|
|
invoke-direct {v3, v1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getEntryTitle(Lcom/discord/models/domain/ModelAuditLogEntry;)I
|
|
|
|
move-result v3
|
|
|
|
new-array v4, v8, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v4, v10
|
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "context.resources"
|
|
|
|
invoke-static {v5, v6}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v6, 0x7f100071
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v7
|
|
|
|
if-eqz v7, :cond_1f
|
|
|
|
invoke-virtual {v7}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getMembersRemoved()I
|
|
|
|
move-result v7
|
|
|
|
goto :goto_14
|
|
|
|
:cond_1f
|
|
const/4 v7, 0x0
|
|
|
|
:goto_14
|
|
new-array v8, v9, [Ljava/lang/Object;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getOptions()Lcom/discord/models/domain/ModelAuditLogEntry$Options;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_20
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelAuditLogEntry$Options;->getMembersRemoved()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_15
|
|
|
|
:cond_20
|
|
invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_15
|
|
aput-object v1, v8, v10
|
|
|
|
invoke-static {v5, v2, v6, v7, v8}, Lcom/discord/utilities/resources/StringResourceUtilsKt;->getQuantityString(Landroid/content/res/Resources;Landroid/content/Context;II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v4, v9
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_16
|
|
const-string v2, "when (auditLogEntry.acti\u2026 )\n )\n }"
|
|
|
|
invoke-static {v1, v2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v1
|
|
|
|
:cond_21
|
|
const-string v1, "prefix"
|
|
|
|
invoke-static {v1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
throw v1
|
|
|
|
:cond_22
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "targets"
|
|
|
|
invoke-static {v2}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_23
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "context"
|
|
|
|
invoke-static {v2}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_24
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "username"
|
|
|
|
invoke-static {v2}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_25
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "auditLogEntry"
|
|
|
|
invoke-static {v2}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x3c
|
|
:pswitch_3
|
|
:pswitch_3
|
|
:pswitch_3
|
|
.end packed-switch
|
|
|
|
:pswitch_data_1
|
|
.packed-switch 0x48
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public final getTargetTypeImage(Landroid/view/View;I)I
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-static {p2}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTargetType(I)Lcom/discord/models/domain/ModelAuditLogEntry$TargetType;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "ModelAuditLogEntry.getTargetType(actionTypeId)"
|
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v1, 0x48
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne p2, v1, :cond_0
|
|
|
|
const p2, 0x7f040228
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
sget-object p2, Lcom/discord/utilities/auditlogs/AuditLogUtils$WhenMappings;->$EnumSwitchMapping$0:[I
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
aget p2, p2, v0
|
|
|
|
packed-switch p2, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
const p2, 0x7f040224
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1
|
|
const p2, 0x7f040223
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_2
|
|
const p2, 0x7f04022b
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_3
|
|
const p2, 0x7f040225
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_4
|
|
const p2, 0x7f040229
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_5
|
|
const p2, 0x7f040227
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_6
|
|
const p2, 0x7f040222
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_7
|
|
const p2, 0x7f04022a
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_8
|
|
const p2, 0x7f040221
|
|
|
|
invoke-static {p1, p2, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
return v2
|
|
|
|
:cond_1
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public final getTimestampStart(Lcom/discord/models/domain/ModelAuditLogEntry;)J
|
|
.locals 4
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getId()J
|
|
|
|
move-result-wide v0
|
|
|
|
const/16 p1, 0x16
|
|
|
|
ushr-long/2addr v0, p1
|
|
|
|
const-wide v2, 0x14aa2cab000L
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
const-string p1, "$this$getTimestampStart"
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getTimestampString(Lcom/discord/models/domain/ModelAuditLogEntry;Landroid/content/Context;)Ljava/lang/CharSequence;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTimestampEnd()Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTimestampStart(Lcom/discord/models/domain/ModelAuditLogEntry;)J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-direct {p0, v0, v1, p2}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTimestampText(JLandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelAuditLogEntry;->getTimestampEnd()Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide/16 v1, 0x0
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-direct {p0, v1, v2, p2}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTimestampText(JLandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " - "
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTimestampStart(Lcom/discord/models/domain/ModelAuditLogEntry;)J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-direct {p0, v0, v1, p2}, Lcom/discord/utilities/auditlogs/AuditLogUtils;->getTimestampText(JLandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
return-object p1
|
|
|
|
:cond_2
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "auditLogEntry"
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|