mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
31 lines
727 B
C#
31 lines
727 B
C#
using System.IO;
|
|
|
|
namespace TeleSharp.TL
|
|
{
|
|
[TLObject(-1264392051)]
|
|
public class TLUpdateEncryption : TLAbsUpdate
|
|
{
|
|
public override int Constructor => -1264392051;
|
|
|
|
public TLAbsEncryptedChat chat { get; set; }
|
|
public int date { get; set; }
|
|
|
|
|
|
public void ComputeFlags()
|
|
{
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
{
|
|
chat = (TLAbsEncryptedChat) ObjectUtils.DeserializeObject(br);
|
|
date = br.ReadInt32();
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
{
|
|
bw.Write(Constructor);
|
|
ObjectUtils.SerializeObject(chat, bw);
|
|
bw.Write(date);
|
|
}
|
|
}
|
|
} |