TLSharp/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs

62 lines
1.4 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(630429265)]
2016-09-24 15:38:26 +02:00
public class TLRequestGetDifference : TLMethod
{
public override int Constructor
{
get
{
return 630429265;
2016-09-24 15:38:26 +02:00
}
}
2017-12-20 12:06:31 +01:00
public int Date { get; set; }
public int Flags { get; set; }
2017-12-20 12:06:31 +01:00
public int Pts { get; set; }
2017-12-20 12:06:31 +01:00
public int? PtsTotalLimit { get; set; }
2017-12-20 12:06:31 +01:00
public int Qts { get; set; }
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public Updates.TLAbsDifference 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)
{
Flags = br.ReadInt32();
Pts = br.ReadInt32();
if ((Flags & 1) != 0)
PtsTotalLimit = br.ReadInt32();
else
PtsTotalLimit = null;
Date = br.ReadInt32();
Qts = br.ReadInt32();
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 = (Updates.TLAbsDifference)ObjectUtils.DeserializeObject(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
bw.Write(Pts);
if ((Flags & 1) != 0)
bw.Write(PtsTotalLimit.Value);
bw.Write(Date);
bw.Write(Qts);
}
2016-09-24 15:38:26 +02:00
}
}