TLSharp/TeleSharp.TL/TL/TLInputStickerSetItem.cs
Andrzej Gołaszewski ca3a71e39a update to layer 71
code formatting
2017-12-20 12:06:31 +01:00

50 lines
1.2 KiB
C#

using System.IO;
namespace TeleSharp.TL
{
[TLObject(-6249322)]
public class TLInputStickerSetItem : TLObject
{
public override int Constructor
{
get
{
return -6249322;
}
}
public TLAbsInputDocument Document { get; set; }
public string Emoji { get; set; }
public int Flags { get; set; }
public TLMaskCoords MaskCoords { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Flags = br.ReadInt32();
Document = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
Emoji = StringUtil.Deserialize(br);
if ((Flags & 1) != 0)
MaskCoords = (TLMaskCoords)ObjectUtils.DeserializeObject(br);
else
MaskCoords = null;
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
ObjectUtils.SerializeObject(Document, bw);
StringUtil.Serialize(Emoji, bw);
if ((Flags & 1) != 0)
ObjectUtils.SerializeObject(MaskCoords, bw);
}
}
}