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

54 lines
1.2 KiB
C#

using System.IO;
namespace TeleSharp.TL
{
[TLObject(-931638658)]
public class TLEncryptedChatRequested : TLAbsEncryptedChat
{
public long AccessHash { get; set; }
public int AdminId { get; set; }
public override int Constructor
{
get
{
return -931638658;
}
}
public int Date { get; set; }
public byte[] GA { get; set; }
public int Id { get; set; }
public int ParticipantId { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Id = br.ReadInt32();
AccessHash = br.ReadInt64();
Date = br.ReadInt32();
AdminId = br.ReadInt32();
ParticipantId = br.ReadInt32();
GA = BytesUtil.Deserialize(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Id);
bw.Write(AccessHash);
bw.Write(Date);
bw.Write(AdminId);
bw.Write(ParticipantId);
BytesUtil.Serialize(GA, bw);
}
}
}