TLSharp/TeleSharp.TL/TL/TLPageBlockVideo.cs

50 lines
1.1 KiB
C#
Raw Normal View History

using System.IO;
2017-12-20 12:06:31 +01:00
namespace TeleSharp.TL
{
[TLObject(-640214938)]
public class TLPageBlockVideo : TLAbsPageBlock
{
2017-12-20 12:06:31 +01:00
public bool Autoplay { get; set; }
public TLAbsRichText Caption { get; set; }
public override int Constructor
{
get
{
return -640214938;
}
}
public int Flags { get; set; }
2017-12-20 12:06:31 +01:00
public bool Loop { get; set; }
2017-12-20 12:06:31 +01:00
public long VideoId { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Flags = br.ReadInt32();
Autoplay = (Flags & 1) != 0;
Loop = (Flags & 2) != 0;
VideoId = br.ReadInt64();
Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
bw.Write(VideoId);
ObjectUtils.SerializeObject(Caption, bw);
}
}
}