89 lines
2.2 KiB
Smali
89 lines
2.2 KiB
Smali
|
.class public final Lcom/discord/models/domain/ModelSubscription$Status$Companion;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ModelSubscription.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/discord/models/domain/ModelSubscription$Status;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = "Companion"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/models/domain/ModelSubscription$Status$Companion;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final from(I)Lcom/discord/models/domain/ModelSubscription$Status;
|
||
|
.locals 2
|
||
|
|
||
|
packed-switch p1, :pswitch_data_0
|
||
|
|
||
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string v1, "unsupported subscription status: "
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:pswitch_0
|
||
|
sget-object p1, Lcom/discord/models/domain/ModelSubscription$Status;->CANCELED:Lcom/discord/models/domain/ModelSubscription$Status;
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:pswitch_1
|
||
|
sget-object p1, Lcom/discord/models/domain/ModelSubscription$Status;->PAST_DUE:Lcom/discord/models/domain/ModelSubscription$Status;
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:pswitch_2
|
||
|
sget-object p1, Lcom/discord/models/domain/ModelSubscription$Status;->ACTIVE:Lcom/discord/models/domain/ModelSubscription$Status;
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:pswitch_3
|
||
|
sget-object p1, Lcom/discord/models/domain/ModelSubscription$Status;->UNPAID:Lcom/discord/models/domain/ModelSubscription$Status;
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
nop
|
||
|
|
||
|
:pswitch_data_0
|
||
|
.packed-switch 0x0
|
||
|
:pswitch_3
|
||
|
:pswitch_2
|
||
|
:pswitch_1
|
||
|
:pswitch_0
|
||
|
.end packed-switch
|
||
|
.end method
|