TLSharp/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs

50 lines
1 KiB
C#
Raw Normal View History

2016-09-24 15:38:26 +02:00
using System.IO;
2017-12-20 12:06:31 +01:00
2016-09-24 15:38:26 +02:00
namespace TeleSharp.TL
{
[TLObject(949182130)]
2016-09-24 15:38:26 +02:00
public class TLInputPeerNotifySettings : TLObject
{
public override int Constructor
{
get
{
return 949182130;
}
}
public int Flags { get; set; }
2017-12-20 12:06:31 +01:00
public int MuteUntil { get; set; }
public bool ShowPreviews { get; set; }
2017-12-20 12:06:31 +01:00
public bool Silent { get; set; }
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public string Sound { get; set; }
2016-09-24 15:38:26 +02:00
public void ComputeFlags()
{
}
2016-09-24 15:38:26 +02:00
public override void DeserializeBody(BinaryReader br)
{
Flags = br.ReadInt32();
ShowPreviews = (Flags & 1) != 0;
Silent = (Flags & 2) != 0;
MuteUntil = br.ReadInt32();
Sound = StringUtil.Deserialize(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
2016-09-24 15:38:26 +02:00
bw.Write(MuteUntil);
StringUtil.Serialize(Sound, bw);
2016-09-24 15:38:26 +02:00
}
}
}