TLRPC$TL_secureValueHash.smali

.class public Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;
.super Lim/tpelyyftgw/tgnet/TLObject;
.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_secureValueHash"
.end annotation


# static fields
.field public static constructor:I


# instance fields
.field public hash:[B

.field public type:Lim/tpelyyftgw/tgnet/TLRPC$SecureValueType;


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

    .line 6679
    const v0, -0x12e13250

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

    return-void
.end method

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

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

    return-void
.end method

.method public static TLdeserialize(Lim/tpelyyftgw/tgnet/AbstractSerializedData;IZ)Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;
    .registers 7
    .param p0, "stream"    # Lim/tpelyyftgw/tgnet/AbstractSerializedData;
    .param p1, "constructor"    # I
    .param p2, "exception"    # Z

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

    if-eq v0, p1, :cond_1e

    .line 6686
    if-nez p2, :cond_8

    .line 6689
    const/4 v0, 0x0

    return-object v0

    .line 6687
    :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 TL_secureValueHash"

    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 6692
    :cond_1e
    new-instance v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;

    invoke-direct {v0}, Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;-><init>()V

    .line 6693
    .local v0, "result":Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;
    invoke-virtual {v0, p0, p2}, Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;->readParams(Lim/tpelyyftgw/tgnet/AbstractSerializedData;Z)V

    .line 6694
    return-object v0
.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 6698
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

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

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;->type:Lim/tpelyyftgw/tgnet/TLRPC$SecureValueType;

    .line 6699
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readByteArray(Z)[B

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;->hash:[B

    .line 6700
    return-void
.end method

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

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

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

    .line 6704
    iget-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;->type:Lim/tpelyyftgw/tgnet/TLRPC$SecureValueType;

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

    .line 6705
    iget-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_secureValueHash;->hash:[B

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeByteArray([B)V

    .line 6706
    return-void
.end method