TLSharp/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs
Andrzej Gołaszewski ca3a71e39a update to layer 71
code formatting
2017-12-20 12:06:31 +01:00

50 lines
1 KiB
C#

using System.IO;
namespace TeleSharp.TL
{
[TLObject(949182130)]
public class TLInputPeerNotifySettings : TLObject
{
public override int Constructor
{
get
{
return 949182130;
}
}
public int Flags { get; set; }
public int MuteUntil { get; set; }
public bool ShowPreviews { get; set; }
public bool Silent { get; set; }
public string Sound { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Flags = br.ReadInt32();
ShowPreviews = (Flags & 1) != 0;
Silent = (Flags & 2) != 0;
MuteUntil = br.ReadInt32();
Sound = StringUtil.Deserialize(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
bw.Write(MuteUntil);
StringUtil.Serialize(Sound, bw);
}
}
}