mirror of
https://github.com/sochix/TLSharp.git
synced 2026-01-03 15:29:58 +01:00
38 lines
832 B
C#
38 lines
832 B
C#
using System.IO;
|
|
|
|
namespace TeleSharp.TL.Messages
|
|
{
|
|
[TLObject(-1663561404)]
|
|
public class TLChatsSlice : TLAbsChats
|
|
{
|
|
public TLVector<TLAbsChat> Chats { get; set; }
|
|
|
|
public override int Constructor
|
|
{
|
|
get
|
|
{
|
|
return -1663561404;
|
|
}
|
|
}
|
|
|
|
public int Count { get; set; }
|
|
|
|
public void ComputeFlags()
|
|
{
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
{
|
|
Count = br.ReadInt32();
|
|
Chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
{
|
|
bw.Write(Constructor);
|
|
bw.Write(Count);
|
|
ObjectUtils.SerializeObject(Chats, bw);
|
|
}
|
|
}
|
|
}
|