SecretChatHelper$TL_decryptedMessageHolder.smali

.class public Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;
.super Lim/tpelyyftgw/tgnet/TLObject;
.source "SecretChatHelper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/messenger/SecretChatHelper;
.end annotation

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


# static fields
.field public static constructor:I


# instance fields
.field public date:I

.field public decryptedWithVersion:I

.field public file:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedFile;

.field public layer:Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageLayer;

.field public new_key_used:Z


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

    .line 31
    const v0, 0x555555f9

    sput v0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->constructor:I

    return-void
.end method

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

    .line 30
    invoke-direct {p0}, Lim/tpelyyftgw/tgnet/TLObject;-><init>()V

    return-void
.end method


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

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

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

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->date:I

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

    move-result v0

    invoke-static {p1, v0, p2}, Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageLayer;->TLdeserialize(Lim/tpelyyftgw/tgnet/AbstractSerializedData;IZ)Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageLayer;

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->layer:Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageLayer;

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

    move-result v0

    if-eqz v0, :cond_23

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

    move-result v0

    invoke-static {p1, v0, p2}, Lim/tpelyyftgw/tgnet/TLRPC$EncryptedFile;->TLdeserialize(Lim/tpelyyftgw/tgnet/AbstractSerializedData;IZ)Lim/tpelyyftgw/tgnet/TLRPC$EncryptedFile;

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->file:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedFile;

    .line 46
    :cond_23
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readBool(Z)Z

    move-result v0

    iput-boolean v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->new_key_used:Z

    .line 47
    return-void
.end method

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

    .line 50
    sget v0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->constructor:I

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

    .line 51
    const-wide/16 v0, 0x0

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

    .line 52
    iget v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->date:I

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

    .line 53
    iget-object v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->layer:Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageLayer;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/tgnet/TLRPC$TL_decryptedMessageLayer;->serializeToStream(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V

    .line 54
    iget-object v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->file:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedFile;

    if-eqz v0, :cond_1a

    const/4 v0, 0x1

    goto :goto_1b

    :cond_1a
    const/4 v0, 0x0

    :goto_1b
    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeBool(Z)V

    .line 55
    iget-object v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->file:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedFile;

    if-eqz v0, :cond_25

    .line 56
    invoke-virtual {v0, p1}, Lim/tpelyyftgw/tgnet/TLRPC$EncryptedFile;->serializeToStream(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V

    .line 58
    :cond_25
    iget-boolean v0, p0, Lim/tpelyyftgw/messenger/SecretChatHelper$TL_decryptedMessageHolder;->new_key_used:Z

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

    .line 59
    return-void
.end method