apkfuckery/com.discord/smali/com/discord/models/domain/ModelGuildMemberListUpdate$...

138 lines
4.6 KiB
Smali

.class public final Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$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$Item;
.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$Item;",
">;"
}
.end annotation
# static fields
.field public static final INSTANCE:Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$Parser;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$Parser;
invoke-direct {v0}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$Parser;-><init>()V
sput-object v0, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$Parser;->INSTANCE:Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$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$Item;
.locals 3
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 v2, Lkotlin/jvm/internal/Ref$ObjectRef;
invoke-direct {v2}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
iput-object v1, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
new-instance v1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$Parser$parse$1;
invoke-direct {v1, v0, p1, v2}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$Parser$parse$1;-><init>(Lkotlin/jvm/internal/Ref$ObjectRef;Lcom/discord/models/domain/Model$JsonReader;Lkotlin/jvm/internal/Ref$ObjectRef;)V
invoke-virtual {p1, v1}, Lcom/discord/models/domain/Model$JsonReader;->nextObject(Lrx/functions/Action1;)V
iget-object p1, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
move-object v1, p1
check-cast v1, Lcom/discord/models/domain/ModelGuildMember;
if-eqz v1, :cond_0
new-instance v0, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$MemberItem;
check-cast p1, Lcom/discord/models/domain/ModelGuildMember;
invoke-static {p1}, Lk0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
invoke-direct {v0, p1}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$MemberItem;-><init>(Lcom/discord/models/domain/ModelGuildMember;)V
goto :goto_0
:cond_0
iget-object p1, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
move-object v0, p1
check-cast v0, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Group;
if-eqz v0, :cond_1
new-instance v0, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$GroupItem;
check-cast p1, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Group;
invoke-static {p1}, Lk0/n/c/i;->checkNotNull(Ljava/lang/Object;)V
invoke-direct {v0, p1}, Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item$GroupItem;-><init>(Lcom/discord/models/domain/ModelGuildMemberListUpdate$Group;)V
:goto_0
return-object v0
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "either member or group must be present."
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.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$Item$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelGuildMemberListUpdate$Operation$Item;
move-result-object p1
return-object p1
.end method