204 lines
6.3 KiB
Smali
204 lines
6.3 KiB
Smali
.class public final Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser;
|
|
.super Ljava/lang/Object;
|
|
.source "ModelApplicationCommandOption.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/models/domain/Model$Parser;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/models/slashcommands/ModelApplicationCommandOption;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Parser"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lcom/discord/models/domain/Model$Parser<",
|
|
"Lcom/discord/models/slashcommands/ModelApplicationCommandOption;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser;
|
|
|
|
invoke-direct {v0}, Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser;->INSTANCE:Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/slashcommands/ModelApplicationCommandOption;
|
|
.locals 26
|
|
|
|
move-object/from16 v9, p1
|
|
|
|
const-string v0, "reader"
|
|
|
|
invoke-static {v9, v0}, Lf/e/c/a/a;->M(Lcom/discord/models/domain/Model$JsonReader;Ljava/lang/String;)Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
move-result-object v10
|
|
|
|
sget-object v0, Lcom/discord/models/slashcommands/ApplicationCommandType;->UNKNOWN:Lcom/discord/models/slashcommands/ApplicationCommandType;
|
|
|
|
iput-object v0, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v11, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v11}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
const-string v0, ""
|
|
|
|
iput-object v0, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v12, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v12}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v0, v12, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v13, Lkotlin/jvm/internal/Ref$BooleanRef;
|
|
|
|
invoke-direct {v13}, Lkotlin/jvm/internal/Ref$BooleanRef;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, v13, Lkotlin/jvm/internal/Ref$BooleanRef;->element:Z
|
|
|
|
new-instance v14, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v14}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v15, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v15}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
sget-object v1, Ly/i/l;->d:Ly/i/l;
|
|
|
|
iput-object v1, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v8, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v8}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v0, v8, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v7, Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser$parse$1;
|
|
|
|
move-object v0, v7
|
|
|
|
move-object v1, v10
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
move-object v3, v11
|
|
|
|
move-object v4, v12
|
|
|
|
move-object v5, v13
|
|
|
|
move-object v6, v14
|
|
|
|
move-object/from16 v16, v14
|
|
|
|
move-object v14, v7
|
|
|
|
move-object v7, v15
|
|
|
|
move-object/from16 v17, v8
|
|
|
|
invoke-direct/range {v0 .. v8}, Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser$parse$1;-><init>(Lkotlin/jvm/internal/Ref$ObjectRef;Lcom/discord/models/domain/Model$JsonReader;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$BooleanRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
|
|
|
invoke-virtual {v9, v14}, Lcom/discord/models/domain/Model$JsonReader;->nextObject(Lrx/functions/Action1;)V
|
|
|
|
new-instance v0, Lcom/discord/models/slashcommands/ModelApplicationCommandOption;
|
|
|
|
iget-object v1, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v19, v1
|
|
|
|
check-cast v19, Lcom/discord/models/slashcommands/ApplicationCommandType;
|
|
|
|
iget-object v1, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v20, v1
|
|
|
|
check-cast v20, Ljava/lang/String;
|
|
|
|
iget-object v1, v12, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v21, v1
|
|
|
|
check-cast v21, Ljava/lang/String;
|
|
|
|
iget-boolean v1, v13, Lkotlin/jvm/internal/Ref$BooleanRef;->element:Z
|
|
|
|
move-object/from16 v2, v16
|
|
|
|
iget-object v2, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v23, v2
|
|
|
|
check-cast v23, Ljava/lang/String;
|
|
|
|
iget-object v2, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v24, v2
|
|
|
|
check-cast v24, Ljava/util/List;
|
|
|
|
move-object/from16 v2, v17
|
|
|
|
iget-object v2, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v25, v2
|
|
|
|
check-cast v25, Ljava/util/List;
|
|
|
|
move-object/from16 v18, v0
|
|
|
|
move/from16 v22, v1
|
|
|
|
invoke-direct/range {v18 .. v25}, Lcom/discord/models/slashcommands/ModelApplicationCommandOption;-><init>(Lcom/discord/models/slashcommands/ApplicationCommandType;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic parse(Lcom/discord/models/domain/Model$JsonReader;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/models/slashcommands/ModelApplicationCommandOption$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/slashcommands/ModelApplicationCommandOption;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|