TLSharp/TeleSharp.TL/TL/TLUpdates.cs

50 lines
1.3 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
{
[TLObject(1957577280)]
2016-09-24 15:38:26 +02:00
public class TLUpdates : TLAbsUpdates
{
2017-12-20 12:06:31 +01:00
public TLVector<TLAbsChat> Chats { get; set; }
2016-09-24 15:38:26 +02:00
public override int Constructor
{
get
{
return 1957577280;
}
}
public int Date { get; set; }
2017-12-20 12:06:31 +01:00
public int Seq { get; set; }
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public TLVector<TLAbsUpdate> Updates { get; set; }
public TLVector<TLAbsUser> Users { 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)
{
Updates = (TLVector<TLAbsUpdate>)ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
Chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
Date = br.ReadInt32();
Seq = br.ReadInt32();
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(Updates, bw);
ObjectUtils.SerializeObject(Users, bw);
ObjectUtils.SerializeObject(Chats, bw);
bw.Write(Date);
bw.Write(Seq);
2016-09-24 15:38:26 +02:00
}
}
}