TLRPC$TL_inputPeerNotifySettings.smali

.class public Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;
.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_inputPeerNotifySettings"
.end annotation


# static fields
.field public static constructor:I


# instance fields
.field public flags:I

.field public mute_until:I

.field public show_previews:Z

.field public silent:Z

.field public sound:Ljava/lang/String;


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

    .line 9750
    const v0, -0x63c2e672

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

    return-void
.end method

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

    .line 9749
    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_inputPeerNotifySettings;
    .registers 7
    .param p0, "stream"    # Lim/tpelyyftgw/tgnet/AbstractSerializedData;
    .param p1, "constructor"    # I
    .param p2, "exception"    # Z

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

    if-eq v0, p1, :cond_1e

    .line 9760
    if-nez p2, :cond_8

    .line 9763
    const/4 v0, 0x0

    return-object v0

    .line 9761
    :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_inputPeerNotifySettings"

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

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

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

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

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

    .line 9773
    and-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_10

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

    move-result v0

    iput-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->show_previews:Z

    .line 9776
    :cond_10
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

    and-int/lit8 v0, v0, 0x2

    if-eqz v0, :cond_1c

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

    move-result v0

    iput-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->silent:Z

    .line 9779
    :cond_1c
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

    and-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_28

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

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->mute_until:I

    .line 9782
    :cond_28
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

    and-int/lit8 v0, v0, 0x8

    if-eqz v0, :cond_34

    .line 9783
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readString(Z)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->sound:Ljava/lang/String;

    .line 9785
    :cond_34
    return-void
.end method

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

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

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

    .line 9789
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

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

    .line 9790
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

    and-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_15

    .line 9791
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->show_previews:Z

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

    .line 9793
    :cond_15
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

    and-int/lit8 v0, v0, 0x2

    if-eqz v0, :cond_20

    .line 9794
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->silent:Z

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

    .line 9796
    :cond_20
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

    and-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_2b

    .line 9797
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->mute_until:I

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

    .line 9799
    :cond_2b
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->flags:I

    and-int/lit8 v0, v0, 0x8

    if-eqz v0, :cond_36

    .line 9800
    iget-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_inputPeerNotifySettings;->sound:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeString(Ljava/lang/String;)V

    .line 9802
    :cond_36
    return-void
.end method