TLRPCContacts$ApplyGreetDetail.smali
.class public Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;
.super Lim/tpelyyftgw/tgnet/TLObject;
.source "TLRPCContacts.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lim/tpelyyftgw/tgnet/TLRPCContacts;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ApplyGreetDetail"
.end annotation
# static fields
.field public static constructor:I
# instance fields
.field public greets:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lim/tpelyyftgw/tgnet/TLRPCContacts$GreetInfo;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 359
const v0, -0x1859b663
sput v0, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;->constructor:I
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 358
invoke-direct {p0}, Lim/tpelyyftgw/tgnet/TLObject;-><init>()V
.line 360
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;->greets:Ljava/util/ArrayList;
return-void
.end method
.method public static TLdeserialize(Lim/tpelyyftgw/tgnet/AbstractSerializedData;IZ)Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;
.registers 7
.param p0, "stream" # Lim/tpelyyftgw/tgnet/AbstractSerializedData;
.param p1, "constructor" # I
.param p2, "exception" # Z
.line 363
sget v0, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;->constructor:I
if-eq v0, p1, :cond_1e
.line 364
if-nez p2, :cond_8
.line 367
const/4 v0, 0x0
return-object v0
.line 365
:cond_8
new-instance v0, Ljava/lang/RuntimeException;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
const-string v2, "can\'t parse magic %x in ApplyGreetDetail"
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
.line 370
:cond_1e
new-instance v0, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;
invoke-direct {v0}, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;-><init>()V
.line 371
.local v0, "result":Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;
invoke-virtual {v0, p0, p2}, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;->readParams(Lim/tpelyyftgw/tgnet/AbstractSerializedData;Z)V
.line 372
return-object v0
.end method
# virtual methods
.method public readParams(Lim/tpelyyftgw/tgnet/AbstractSerializedData;Z)V
.registers 8
.param p1, "stream" # Lim/tpelyyftgw/tgnet/AbstractSerializedData;
.param p2, "exception" # Z
.line 388
invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I
move-result v0
.line 389
.local v0, "magic":I
const v1, 0x1cb5c415
if-eq v0, v1, :cond_23
.line 390
if-nez p2, :cond_c
.line 393
return-void
.line 391
:cond_c
new-instance v1, Ljava/lang/RuntimeException;
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
aput-object v4, v2, v3
const-string/jumbo v3, "wrong Vector magic, got %x"
invoke-static {v3, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v1
.line 395
:cond_23
invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I
move-result v1
.line 396
.local v1, "count":I
const/4 v2, 0x0
.local v2, "a":I
:goto_28
if-ge v2, v1, :cond_3d
.line 397
invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I
move-result v3
invoke-static {p1, v3, p2}, Lim/tpelyyftgw/tgnet/TLRPCContacts$GreetInfo;->TLdeserialize(Lim/tpelyyftgw/tgnet/AbstractSerializedData;IZ)Lim/tpelyyftgw/tgnet/TLRPCContacts$GreetInfo;
move-result-object v3
.line 398
.local v3, "greetInfo":Lim/tpelyyftgw/tgnet/TLRPCContacts$GreetInfo;
if-nez v3, :cond_35
.line 399
return-void
.line 401
:cond_35
iget-object v4, p0, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;->greets:Ljava/util/ArrayList;
invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 396
.end local v3 # "greetInfo":Lim/tpelyyftgw/tgnet/TLRPCContacts$GreetInfo;
add-int/lit8 v2, v2, 0x1
goto :goto_28
.line 403
.end local v2 # "a":I
:cond_3d
return-void
.end method
.method public serializeToStream(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V
.registers 5
.param p1, "stream" # Lim/tpelyyftgw/tgnet/AbstractSerializedData;
.line 378
sget v0, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;->constructor:I
invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V
.line 379
const v0, 0x1cb5c415
invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V
.line 380
iget-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;->greets:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
.line 381
.local v0, "count":I
const/4 v1, 0x0
.local v1, "i":I
:goto_12
if-ge v1, v0, :cond_22
.line 382
iget-object v2, p0, Lim/tpelyyftgw/tgnet/TLRPCContacts$ApplyGreetDetail;->greets:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lim/tpelyyftgw/tgnet/TLRPCContacts$GreetInfo;
invoke-virtual {v2, p1}, Lim/tpelyyftgw/tgnet/TLRPCContacts$GreetInfo;->serializeToStream(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V
.line 381
add-int/lit8 v1, v1, 0x1
goto :goto_12
.line 384
.end local v1 # "i":I
:cond_22
return-void
.end method