2020-08-10 21:02:22 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreMessages$sendMessage$4;
|
2020-08-18 03:20:31 +00:00
|
|
|
.super Lj0/n/c/i;
|
2020-08-10 21:02:22 +00:00
|
|
|
.source "StoreMessages.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-08-18 03:20:31 +00:00
|
|
|
.implements Lkotlin/jvm/functions/Function0;
|
2020-08-10 21:02:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
2020-08-18 03:20:31 +00:00
|
|
|
value = Lcom/discord/stores/StoreMessages;->sendMessage(JLcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lcom/discord/models/domain/ModelApplication;Lcom/discord/models/domain/activity/ModelActivity;Lcom/discord/models/domain/ModelMessage$Activity;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Integer;)Lrx/Observable;
|
2020-08-10 21:02:22 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-08-18 03:20:31 +00:00
|
|
|
"Lj0/n/c/i;",
|
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
2020-08-10 21:02:22 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreMessages;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-08-18 03:20:31 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreMessages;)V
|
2020-08-10 21:02:22 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMessages$sendMessage$4;->this$0:Lcom/discord/stores/StoreMessages;
|
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
const/4 p1, 0x0
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
|
2020-08-10 21:02:22 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-08-18 03:20:31 +00:00
|
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
|
|
.locals 1
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreMessages$sendMessage$4;->invoke()V
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
return-object v0
|
2020-08-10 21:02:22 +00:00
|
|
|
.end method
|
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
.method public final invoke()V
|
|
|
|
.locals 5
|
2020-08-10 21:02:22 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessages$sendMessage$4;->this$0:Lcom/discord/stores/StoreMessages;
|
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
invoke-static {v0}, Lcom/discord/stores/StoreMessages;->access$getContext$p(Lcom/discord/stores/StoreMessages;)Landroid/content/Context;
|
2020-08-10 21:02:22 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v1, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/workers/BackgroundMessageSendWorker;
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Landroidx/work/OneTimeWorkRequest$Builder;-><init>(Ljava/lang/Class;)V
|
|
|
|
|
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
const-wide/32 v3, 0x1d4c0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3, v4, v2}, Landroidx/work/WorkRequest$Builder;->setInitialDelay(JLjava/util/concurrent/TimeUnit;)Landroidx/work/WorkRequest$Builder;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
new-instance v2, Landroidx/work/Constraints$Builder;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Landroidx/work/Constraints$Builder;-><init>()V
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/work/NetworkType;->CONNECTED:Landroidx/work/NetworkType;
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
invoke-virtual {v2, v3}, Landroidx/work/Constraints$Builder;->setRequiredNetworkType(Landroidx/work/NetworkType;)Landroidx/work/Constraints$Builder;
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
move-result-object v2
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
invoke-virtual {v2}, Landroidx/work/Constraints$Builder;->build()Landroidx/work/Constraints;
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
move-result-object v2
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
invoke-virtual {v1, v2}, Landroidx/work/WorkRequest$Builder;->setConstraints(Landroidx/work/Constraints;)Landroidx/work/WorkRequest$Builder;
|
2020-08-10 21:02:22 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/work/OneTimeWorkRequest$Builder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/work/WorkRequest$Builder;->build()Landroidx/work/WorkRequest;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "OneTimeWorkRequestBuilde\u2026 )\n .build()"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/work/OneTimeWorkRequest;
|
|
|
|
|
|
|
|
invoke-static {v0}, Landroidx/work/WorkManager;->getInstance(Landroid/content/Context;)Landroidx/work/WorkManager;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v2, Landroidx/work/ExistingWorkPolicy;->REPLACE:Landroidx/work/ExistingWorkPolicy;
|
|
|
|
|
|
|
|
const-string v3, "BACKGROUND_MESSAGE_SENDING"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v2, v1}, Landroidx/work/WorkManager;->enqueueUniqueWork(Ljava/lang/String;Landroidx/work/ExistingWorkPolicy;Landroidx/work/OneTimeWorkRequest;)Landroidx/work/Operation;
|
2020-08-10 21:02:22 +00:00
|
|
|
|
|
|
|
return-void
|
2020-08-18 03:20:31 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, "context"
|
|
|
|
|
|
|
|
invoke-static {v0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
2020-08-10 21:02:22 +00:00
|
|
|
.end method
|