TLSharp/TeleSharp.TL/TL/Updates/TLState.cs

50 lines
1 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.Updates
{
[TLObject(-1519637954)]
2016-09-24 15:38:26 +02:00
public class TLState : TLObject
{
public override int Constructor
{
get
{
return -1519637954;
}
}
2017-12-20 12:06:31 +01:00
public int Date { get; set; }
public int Pts { get; set; }
2017-12-20 12:06:31 +01:00
public int Qts { 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 int UnreadCount { 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)
{
Pts = br.ReadInt32();
Qts = br.ReadInt32();
Date = br.ReadInt32();
Seq = br.ReadInt32();
UnreadCount = br.ReadInt32();
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Pts);
bw.Write(Qts);
bw.Write(Date);
bw.Write(Seq);
bw.Write(UnreadCount);
2016-09-24 15:38:26 +02:00
}
}
}