TLSharp/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs
2020-10-25 21:21:07 +03:00

47 lines
1,005 B
C#

using System.IO;
namespace TeleSharp.TL
{
[TLObject(-1232070311)]
public class TLUpdateChatParticipantAdmin : TLAbsUpdate
{
public override int Constructor
{
get
{
return -1232070311;
}
}
public long ChatId { get; set; }
public int UserId { get; set; }
public bool IsAdmin { get; set; }
public int Version { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
ChatId = br.ReadInt64();
UserId = br.ReadInt32();
IsAdmin = BoolUtil.Deserialize(br);
Version = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(ChatId);
bw.Write(UserId);
BoolUtil.Serialize(IsAdmin, bw);
bw.Write(Version);
}
}
}