TLRPC$TL_decryptedMessageActionScreenshotMessages.smali

.class public Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageActionScreenshotMessages;
.super Lim/tpelyyftgw/tgnet/TLRPC$DecryptedMessageAction;
.source "TLRPC.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/tgnet/TLRPC;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "TL_decryptedMessageActionScreenshotMessages"
.end annotation


# static fields
.field public static constructor:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .line 21463
    const v0, -0x753e0b8b

    sput v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageActionScreenshotMessages;->constructor:I

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .line 21462
    invoke-direct {p0}, Lim/tpelyyftgw/tgnet/TLRPC$DecryptedMessageAction;-><init>()V

    return-void
.end method


# virtual methods
.method public readParams(Lim/tpelyyftgw/tgnet/AbstractSerializedData;Z)V
    .registers 9
    .param p1, "stream"    # Lim/tpelyyftgw/tgnet/AbstractSerializedData;
    .param p2, "exception"    # Z

    .line 21467
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

    .line 21468
    .local v0, "magic":I
    const v1, 0x1cb5c415

    if-eq v0, v1, :cond_23

    .line 21469
    if-nez p2, :cond_c

    .line 21472
    return-void

    .line 21470
    :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 21474
    :cond_23
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v1

    .line 21475
    .local v1, "count":I
    const/4 v2, 0x0

    .local v2, "a":I
    :goto_28
    if-ge v2, v1, :cond_3a

    .line 21476
    iget-object v3, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageActionScreenshotMessages;->random_ids:Ljava/util/ArrayList;

    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt64(Z)J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 21475
    add-int/lit8 v2, v2, 0x1

    goto :goto_28

    .line 21478
    .end local v2    # "a":I
    :cond_3a
    return-void
.end method

.method public serializeToStream(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V
    .registers 6
    .param p1, "stream"    # Lim/tpelyyftgw/tgnet/AbstractSerializedData;

    .line 21481
    sget v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageActionScreenshotMessages;->constructor:I

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 21482
    const v0, 0x1cb5c415

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 21483
    iget-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageActionScreenshotMessages;->random_ids:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    .line 21484
    .local v0, "count":I
    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 21485
    const/4 v1, 0x0

    .local v1, "a":I
    :goto_15
    if-ge v1, v0, :cond_29

    .line 21486
    iget-object v2, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageActionScreenshotMessages;->random_ids:Ljava/util/ArrayList;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    invoke-virtual {p1, v2, v3}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt64(J)V

    .line 21485
    add-int/lit8 v1, v1, 0x1

    goto :goto_15

    .line 21488
    .end local v1    # "a":I
    :cond_29
    return-void
.end method