2020-01-11 03:15:11 +00:00
|
|
|
.class public final Lcom/discord/workers/CallActionWorker$a;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "CallActionWorker.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/workers/CallActionWorker;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Landroid/content/Context;JJ)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/work/Data$Builder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/work/Data$Builder;-><init>()V
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
new-array v1, v1, [Lkotlin/Pair;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
new-instance p3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
const-string v3, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
|
|
|
|
|
|
|
|
invoke-direct {p3, v3, p2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
aput-object p3, v1, v2
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
new-instance p4, Lkotlin/Pair;
|
|
|
|
|
|
|
|
const-string p5, "com.discord.intent.extra.EXTRA_MESSAGE_ID"
|
|
|
|
|
|
|
|
invoke-direct {p4, p5, p3}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
aput-object p4, v1, p2
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {v1}, Lw/q/l;->mapOf([Lkotlin/Pair;)Ljava/util/Map;
|
2020-01-11 03:15:11 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroidx/work/Data$Builder;->putAll(Ljava/util/Map;)Landroidx/work/Data$Builder;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Landroidx/work/Data$Builder;->build()Landroidx/work/Data;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const-string p3, "Data.Builder()\n \u2026 )\n .build()"
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {p2, p3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-11 03:15:11 +00:00
|
|
|
|
|
|
|
new-instance p3, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
const-class p4, Lcom/discord/workers/CallActionWorker;
|
|
|
|
|
|
|
|
invoke-direct {p3, p4}, Landroidx/work/OneTimeWorkRequest$Builder;-><init>(Ljava/lang/Class;)V
|
|
|
|
|
|
|
|
invoke-virtual {p3, p2}, Landroidx/work/WorkRequest$Builder;->setInputData(Landroidx/work/Data;)Landroidx/work/WorkRequest$Builder;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
sget-object p3, Landroidx/work/BackoffPolicy;->LINEAR:Landroidx/work/BackoffPolicy;
|
|
|
|
|
|
|
|
const-wide/16 p4, 0x1
|
|
|
|
|
|
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3, p4, p5, v0}, Landroidx/work/WorkRequest$Builder;->setBackoffCriteria(Landroidx/work/BackoffPolicy;JLjava/util/concurrent/TimeUnit;)Landroidx/work/WorkRequest$Builder;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
const-string p3, "call"
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Landroidx/work/WorkRequest$Builder;->addTag(Ljava/lang/String;)Landroidx/work/WorkRequest$Builder;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
const-string p3, "decline"
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Landroidx/work/WorkRequest$Builder;->addTag(Ljava/lang/String;)Landroidx/work/WorkRequest$Builder;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
new-instance p3, Landroidx/work/Constraints$Builder;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Landroidx/work/Constraints$Builder;-><init>()V
|
|
|
|
|
|
|
|
sget-object p4, Landroidx/work/NetworkType;->CONNECTED:Landroidx/work/NetworkType;
|
|
|
|
|
|
|
|
invoke-virtual {p3, p4}, Landroidx/work/Constraints$Builder;->setRequiredNetworkType(Landroidx/work/NetworkType;)Landroidx/work/Constraints$Builder;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
const-wide/16 p4, 0xa
|
|
|
|
|
|
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
invoke-virtual {p3, p4, p5, v0}, Landroidx/work/Constraints$Builder;->setTriggerContentMaxDelay(JLjava/util/concurrent/TimeUnit;)Landroidx/work/Constraints$Builder;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Landroidx/work/Constraints$Builder;->build()Landroidx/work/Constraints;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Landroidx/work/WorkRequest$Builder;->setConstraints(Landroidx/work/Constraints;)Landroidx/work/WorkRequest$Builder;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Landroidx/work/WorkRequest$Builder;->build()Landroidx/work/WorkRequest;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const-string p3, "OneTimeWorkRequestBuilde\u2026 )\n .build()"
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {p2, p3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-11 03:15:11 +00:00
|
|
|
|
|
|
|
check-cast p2, Landroidx/work/OneTimeWorkRequest;
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroidx/work/WorkManager;->getInstance(Landroid/content/Context;)Landroidx/work/WorkManager;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/work/WorkManager;->enqueue(Landroidx/work/WorkRequest;)Landroidx/work/Operation;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "context"
|
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-01-11 03:15:11 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|