mirror of
https://github.com/sochix/TLSharp.git
synced 2026-01-04 07:49:57 +01:00
54 lines
1.2 KiB
C#
54 lines
1.2 KiB
C#
using System.IO;
|
|
|
|
namespace TeleSharp.TL
|
|
{
|
|
[TLObject(573315206)]
|
|
public class TLChannelParticipantBanned : TLAbsChannelParticipant
|
|
{
|
|
public TLChannelBannedRights BannedRights { get; set; }
|
|
|
|
public override int Constructor
|
|
{
|
|
get
|
|
{
|
|
return 573315206;
|
|
}
|
|
}
|
|
|
|
public int Date { get; set; }
|
|
|
|
public int Flags { get; set; }
|
|
|
|
public int KickedBy { get; set; }
|
|
|
|
public bool Left { get; set; }
|
|
|
|
public int UserId { get; set; }
|
|
|
|
public void ComputeFlags()
|
|
{
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
{
|
|
Flags = br.ReadInt32();
|
|
Left = (Flags & 1) != 0;
|
|
UserId = br.ReadInt32();
|
|
KickedBy = br.ReadInt32();
|
|
Date = br.ReadInt32();
|
|
BannedRights = (TLChannelBannedRights)ObjectUtils.DeserializeObject(br);
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
{
|
|
bw.Write(Constructor);
|
|
bw.Write(Flags);
|
|
|
|
bw.Write(UserId);
|
|
bw.Write(KickedBy);
|
|
bw.Write(Date);
|
|
ObjectUtils.SerializeObject(BannedRights, bw);
|
|
}
|
|
}
|
|
}
|