TLSharp/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs

46 lines
1.2 KiB
C#
Raw Normal View History

2016-10-13 19:33:16 +02:00
using System.IO;
2017-04-13 08:38:01 +02:00
2016-10-13 19:33:16 +02:00
namespace TeleSharp.TL.Messages
{
2017-04-13 08:38:01 +02:00
[TLObject(1475442322)]
2016-10-13 19:33:16 +02:00
public class TLRequestGetArchivedStickers : TLMethod
{
2017-04-13 08:38:01 +02:00
public override int Constructor => 1475442322;
2016-10-13 19:33:16 +02:00
2017-04-13 08:38:01 +02:00
public int flags { get; set; }
public bool masks { get; set; }
public long offset_id { get; set; }
public int limit { get; set; }
public TLArchivedStickers Response { get; set; }
2016-10-13 19:33:16 +02:00
2017-04-13 08:38:01 +02:00
public void ComputeFlags()
{
flags = 0;
flags = masks ? flags | 1 : flags & ~1;
}
2016-10-13 19:33:16 +02:00
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
2017-04-13 08:38:01 +02:00
masks = (flags & 1) != 0;
offset_id = br.ReadInt64();
limit = br.ReadInt32();
2016-10-13 19:33:16 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
2017-04-13 08:38:01 +02:00
bw.Write(Constructor);
2016-10-13 19:33:16 +02:00
ComputeFlags();
2017-04-13 08:38:01 +02:00
bw.Write(flags);
2016-10-13 19:33:16 +02:00
2017-04-13 08:38:01 +02:00
bw.Write(offset_id);
bw.Write(limit);
2016-10-13 19:33:16 +02:00
}
2017-04-13 08:38:01 +02:00
public override void deserializeResponse(BinaryReader br)
{
Response = (TLArchivedStickers) ObjectUtils.DeserializeObject(br);
}
2016-10-13 19:33:16 +02:00
}
2017-04-13 08:38:01 +02:00
}