244 lines
7.3 KiB
Smali
244 lines
7.3 KiB
Smali
.class public final Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;
|
|
.super Ljava/lang/Object;
|
|
.source "StoreApplicationStreamPreviews.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Actions"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;
|
|
|
|
.field public static clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
.field public static dispatcher:Lcom/discord/stores/Dispatcher;
|
|
|
|
.field public static store:Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;
|
|
|
|
invoke-direct {v0}, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->INSTANCE:Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getDispatcher$p(Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;)Lcom/discord/stores/Dispatcher;
|
|
.locals 0
|
|
|
|
sget-object p0, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->dispatcher:Lcom/discord/stores/Dispatcher;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "dispatcher"
|
|
|
|
invoke-static {p0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getStore$p(Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;)Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
.locals 0
|
|
|
|
sget-object p0, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->store:Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "store"
|
|
|
|
invoke-static {p0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$setDispatcher$p(Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;Lcom/discord/stores/Dispatcher;)V
|
|
.locals 0
|
|
|
|
sput-object p1, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->dispatcher:Lcom/discord/stores/Dispatcher;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$setStore$p(Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;Lcom/discord/stores/StoreApplicationStreamPreviews;)V
|
|
.locals 0
|
|
|
|
sput-object p1, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->store:Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final fetchStreamPreview(Ljava/lang/String;)V
|
|
.locals 11
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->dispatcher:Lcom/discord/stores/Dispatcher;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
new-instance v2, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions$fetchStreamPreview$1;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions$fetchStreamPreview$1;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/stores/Dispatcher;->schedule(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
sget-object v1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v2}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {v1, p0, v2, v3}, Lcom/discord/utilities/rest/RestAPI;->getStreamPreview(Ljava/lang/String;J)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {v1, v2}, Le/a/b/l;->a(ZI)Lrx/Observable$c;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v0, "RestAPI\n .api\n \u2026ormers.restSubscribeOn())"
|
|
|
|
invoke-static {v2, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->INSTANCE:Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
new-instance v8, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions$fetchStreamPreview$2;
|
|
|
|
invoke-direct {v8, p0}, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions$fetchStreamPreview$2;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v7, 0x0
|
|
|
|
new-instance v6, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions$fetchStreamPreview$3;
|
|
|
|
invoke-direct {v6, p0}, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions$fetchStreamPreview$3;-><init>(Ljava/lang/String;)V
|
|
|
|
const/16 v9, 0x16
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static/range {v2 .. v10}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p0, "clock"
|
|
|
|
invoke-static {p0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "dispatcher"
|
|
|
|
invoke-static {p0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p0, "streamKey"
|
|
|
|
invoke-static {p0}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final init(Lcom/discord/stores/StoreApplicationStreamPreviews;Lcom/discord/stores/Dispatcher;Lcom/discord/utilities/time/Clock;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
sput-object p1, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->store:Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
|
|
sput-object p2, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->dispatcher:Lcom/discord/stores/Dispatcher;
|
|
|
|
sput-object p3, Lcom/discord/stores/StoreApplicationStreamPreviews$Actions;->clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "clock"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "dispatcher"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "store"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|