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

70 lines
1.4 KiB
C#

using System.IO;
namespace TeleSharp.TL
{
[TLObject(1489977929)]
public class TLChannelBannedRights : TLObject
{
public override int Constructor
{
get
{
return 1489977929;
}
}
public bool EmbedLinks { get; set; }
public int Flags { get; set; }
public bool SendGames { get; set; }
public bool SendGifs { get; set; }
public bool SendInline { get; set; }
public bool SendMedia { get; set; }
public bool SendMessages { get; set; }
public bool SendStickers { get; set; }
public int UntilDate { get; set; }
public bool ViewMessages { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Flags = br.ReadInt32();
ViewMessages = (Flags & 1) != 0;
SendMessages = (Flags & 2) != 0;
SendMedia = (Flags & 4) != 0;
SendStickers = (Flags & 8) != 0;
SendGifs = (Flags & 16) != 0;
SendGames = (Flags & 32) != 0;
SendInline = (Flags & 64) != 0;
EmbedLinks = (Flags & 128) != 0;
UntilDate = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
bw.Write(UntilDate);
}
}
}