TLSharp/TeleSharp.TL/TL/Messages/TLStickerSet.cs

34 lines
985 B
C#
Raw Normal View History

2016-09-24 15:38:26 +02:00
using System.IO;
2017-04-13 08:38:01 +02:00
2016-09-24 15:38:26 +02:00
namespace TeleSharp.TL.Messages
{
2017-04-13 08:38:01 +02:00
[TLObject(-1240849242)]
2016-09-24 15:38:26 +02:00
public class TLStickerSet : TLObject
{
2017-04-13 08:38:01 +02:00
public override int Constructor => -1240849242;
2016-09-24 15:38:26 +02:00
2017-04-13 08:38:01 +02:00
public TLStickerSet set { get; set; }
public TLVector<TLStickerPack> packs { get; set; }
public TLVector<TLAbsDocument> documents { get; set; }
2016-09-24 15:38:26 +02:00
2017-04-13 08:38:01 +02:00
public void ComputeFlags()
{
}
2016-09-24 15:38:26 +02:00
public override void DeserializeBody(BinaryReader br)
{
2017-04-13 08:38:01 +02:00
set = (TLStickerSet) ObjectUtils.DeserializeObject(br);
packs = ObjectUtils.DeserializeVector<TLStickerPack>(br);
documents = ObjectUtils.DeserializeVector<TLAbsDocument>(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
2017-04-13 08:38:01 +02:00
bw.Write(Constructor);
ObjectUtils.SerializeObject(set, bw);
ObjectUtils.SerializeObject(packs, bw);
ObjectUtils.SerializeObject(documents, bw);
2016-09-24 15:38:26 +02:00
}
}
2017-04-13 08:38:01 +02:00
}