TLSharp/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs

49 lines
1.2 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.Messages
{
[TLObject(1035731989)]
2016-09-24 15:38:26 +02:00
public class TLRequestAcceptEncryption : TLMethod
{
public override int Constructor
{
get
{
return 1035731989;
}
}
public byte[] GB { get; set; }
2017-12-20 12:06:31 +01:00
public long KeyFingerprint { get; set; }
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public TLInputEncryptedChat Peer { get; set; }
public TLAbsEncryptedChat Response { 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)
{
Peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br);
GB = BytesUtil.Deserialize(br);
KeyFingerprint = br.ReadInt64();
2017-12-20 12:06:31 +01:00
}
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public override void DeserializeResponse(BinaryReader br)
{
Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(Peer, bw);
BytesUtil.Serialize(GB, bw);
bw.Write(KeyFingerprint);
}
2016-09-24 15:38:26 +02:00
}
}