178 lines
5.3 KiB
Smali
178 lines
5.3 KiB
Smali
.class public final Lcom/discord/stores/StoreEntitlements$Actions;
|
|
.super Ljava/lang/Object;
|
|
.source "StoreEntitlements.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/stores/StoreEntitlements;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Actions"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/stores/StoreEntitlements$Actions;
|
|
|
|
.field private static store:Lcom/discord/stores/StoreEntitlements;
|
|
|
|
.field private static stream:Lcom/discord/stores/StoreStream;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreEntitlements$Actions;
|
|
|
|
invoke-direct {v0}, Lcom/discord/stores/StoreEntitlements$Actions;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/stores/StoreEntitlements$Actions;->INSTANCE:Lcom/discord/stores/StoreEntitlements$Actions;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getStore$p(Lcom/discord/stores/StoreEntitlements$Actions;)Lcom/discord/stores/StoreEntitlements;
|
|
.locals 1
|
|
|
|
sget-object p0, Lcom/discord/stores/StoreEntitlements$Actions;->store:Lcom/discord/stores/StoreEntitlements;
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const-string v0, "store"
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/k;->dR(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getStream$p(Lcom/discord/stores/StoreEntitlements$Actions;)Lcom/discord/stores/StoreStream;
|
|
.locals 1
|
|
|
|
sget-object p0, Lcom/discord/stores/StoreEntitlements$Actions;->stream:Lcom/discord/stores/StoreStream;
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const-string v0, "stream"
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/k;->dR(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$setStore$p(Lcom/discord/stores/StoreEntitlements$Actions;Lcom/discord/stores/StoreEntitlements;)V
|
|
.locals 0
|
|
|
|
sput-object p1, Lcom/discord/stores/StoreEntitlements$Actions;->store:Lcom/discord/stores/StoreEntitlements;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$setStream$p(Lcom/discord/stores/StoreEntitlements$Actions;Lcom/discord/stores/StoreStream;)V
|
|
.locals 0
|
|
|
|
sput-object p1, Lcom/discord/stores/StoreEntitlements$Actions;->stream:Lcom/discord/stores/StoreStream;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final fetchMyGifts()V
|
|
.locals 13
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreEntitlements$Actions;->stream:Lcom/discord/stores/StoreStream;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v1, "stream"
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/k;->dR(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
sget-object v1, Lcom/discord/stores/StoreEntitlements$Actions$fetchMyGifts$1;->INSTANCE:Lcom/discord/stores/StoreEntitlements$Actions$fetchMyGifts$1;
|
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function0;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/stores/StoreStream;->schedule(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/rest/RestAPI;->getGifts()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v0, v1, v2, v3}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->restSubscribeOn$default(Lrx/Observable;ZILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
const-class v5, Lcom/discord/stores/StoreEntitlements;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreEntitlements$Actions$fetchMyGifts$2;->INSTANCE:Lcom/discord/stores/StoreEntitlements$Actions$fetchMyGifts$2;
|
|
|
|
move-object v8, v0
|
|
|
|
check-cast v8, Lkotlin/jvm/functions/Function1;
|
|
|
|
const/4 v9, 0x0
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreEntitlements$Actions$fetchMyGifts$3;->INSTANCE:Lcom/discord/stores/StoreEntitlements$Actions$fetchMyGifts$3;
|
|
|
|
move-object v10, v0
|
|
|
|
check-cast v10, Lkotlin/jvm/functions/Function1;
|
|
|
|
const/16 v11, 0x16
|
|
|
|
const/4 v12, 0x0
|
|
|
|
invoke-static/range {v4 .. v12}, 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
|
|
.end method
|
|
|
|
.method public final init(Lcom/discord/stores/StoreEntitlements;Lcom/discord/stores/StoreStream;)V
|
|
.locals 1
|
|
|
|
const-string v0, "store"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "stream"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sput-object p1, Lcom/discord/stores/StoreEntitlements$Actions;->store:Lcom/discord/stores/StoreEntitlements;
|
|
|
|
sput-object p2, Lcom/discord/stores/StoreEntitlements$Actions;->stream:Lcom/discord/stores/StoreStream;
|
|
|
|
return-void
|
|
.end method
|