TLSharp/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs

34 lines
927 B
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(-123893531)]
2016-10-13 19:33:16 +02:00
public class TLFeaturedStickers : TLAbsFeaturedStickers
{
2017-04-13 08:38:01 +02:00
public override int Constructor => -123893531;
2016-10-13 19:33:16 +02:00
2017-04-13 08:38:01 +02:00
public int hash { get; set; }
public TLVector<TLAbsStickerSetCovered> sets { get; set; }
public TLVector<long> unread { get; set; }
2016-10-13 19:33:16 +02:00
2017-04-13 08:38:01 +02:00
public void ComputeFlags()
{
}
2016-10-13 19:33:16 +02:00
public override void DeserializeBody(BinaryReader br)
{
hash = br.ReadInt32();
2017-04-13 08:38:01 +02:00
sets = ObjectUtils.DeserializeVector<TLAbsStickerSetCovered>(br);
unread = ObjectUtils.DeserializeVector<long>(br);
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
bw.Write(hash);
2017-04-13 08:38:01 +02:00
ObjectUtils.SerializeObject(sets, bw);
ObjectUtils.SerializeObject(unread, bw);
2016-10-13 19:33:16 +02:00
}
}
2017-04-13 08:38:01 +02:00
}