305 lines
9.1 KiB
Smali
305 lines
9.1 KiB
Smali
.class public final Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Parser;
|
|
.super Ljava/lang/Object;
|
|
.source "ModelGuildMemberListUpdate.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/models/domain/Model$Parser;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation;
|
|
.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/domain/ModelGuildMemberListUpdate$Operation;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Parser;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Parser;
|
|
|
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Parser;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Parser;->INSTANCE:Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$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/domain/ModelGuildMemberListUpdate$Operation;
|
|
.locals 13
|
|
|
|
const-string v0, "reader"
|
|
|
|
invoke-static {p1, v0}, Lf/e/b/a/a;->M(Lcom/discord/models/domain/Model$JsonReader;Ljava/lang/String;)Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, v0, 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 v1, v8, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v9, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v9}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, v9, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v10, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v10}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, 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
|
|
|
|
iput-object v1, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v12, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Parser$parse$1;
|
|
|
|
move-object v1, v12
|
|
|
|
move-object v2, v0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, v8
|
|
|
|
move-object v5, v10
|
|
|
|
move-object v6, v9
|
|
|
|
move-object v7, v11
|
|
|
|
invoke-direct/range {v1 .. v7}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$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$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
|
|
|
invoke-virtual {p1, v12}, Lcom/discord/models/domain/Model$JsonReader;->nextObject(Lrx/functions/Action1;)V
|
|
|
|
iget-object p1, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_0
|
|
const-string v1, "DELETE"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance p1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Delete;
|
|
|
|
iget-object v0, v8, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
invoke-static {v0}, Lc0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p1, v0}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Delete;-><init>(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v1, "SYNC"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance p1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Sync;
|
|
|
|
iget-object v0, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lkotlin/ranges/IntRange;
|
|
|
|
invoke-static {v0}, Lc0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object v1, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
invoke-static {v1}, Lc0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-direct {p1, v0, v1}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Sync;-><init>(Lkotlin/ranges/IntRange;Ljava/util/List;)V
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_2
|
|
const-string v1, "INVALIDATE"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance p1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Invalidate;
|
|
|
|
iget-object v0, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lkotlin/ranges/IntRange;
|
|
|
|
invoke-static {v0}, Lc0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-direct {p1, v0}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Invalidate;-><init>(Lkotlin/ranges/IntRange;)V
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_3
|
|
const-string v1, "UPDATE"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance p1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Update;
|
|
|
|
iget-object v0, v8, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
invoke-static {v0}, Lc0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v9, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item;
|
|
|
|
invoke-static {v1}, Lc0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-direct {p1, v0, v1}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Update;-><init>(ILcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item;)V
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_4
|
|
const-string v1, "INSERT"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance p1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Insert;
|
|
|
|
iget-object v0, v8, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
invoke-static {v0}, Lc0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v9, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item;
|
|
|
|
invoke-static {v1}, Lc0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-direct {p1, v0, v1}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Insert;-><init>(ILcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item;)V
|
|
|
|
:goto_0
|
|
return-object p1
|
|
|
|
:cond_0
|
|
:goto_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Invalid operation type: "
|
|
|
|
invoke-static {v1}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v0, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x7efc4947 -> :sswitch_4
|
|
-0x6a6cd337 -> :sswitch_3
|
|
-0x5045e2c5 -> :sswitch_2
|
|
0x27129b -> :sswitch_1
|
|
0x77f979ab -> :sswitch_0
|
|
.end sparse-switch
|
|
.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/domain/ModelGuildMemberListUpdate$Operation$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|