2016-09-24 15:38:26 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using TeleSharp.TL;
|
|
|
|
|
namespace TeleSharp.TL
|
|
|
|
|
{
|
2017-07-10 15:52:00 +02:00
|
|
|
[TLObject(250621158)]
|
2016-09-24 15:38:26 +02:00
|
|
|
public class TLDocumentAttributeVideo : TLAbsDocumentAttribute
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2017-07-10 15:52:00 +02:00
|
|
|
return 250621158;
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-10 15:52:00 +02:00
|
|
|
public int flags {get;set;}
|
|
|
|
|
public bool round_message {get;set;}
|
|
|
|
|
public int duration {get;set;}
|
2016-09-24 15:38:26 +02:00
|
|
|
public int w {get;set;}
|
|
|
|
|
public int h {get;set;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
2017-07-10 15:52:00 +02:00
|
|
|
flags = 0;
|
|
|
|
|
flags = round_message ? (flags | 1) : (flags & ~1);
|
|
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
2017-07-10 15:52:00 +02:00
|
|
|
flags = br.ReadInt32();
|
|
|
|
|
round_message = (flags & 1) != 0;
|
|
|
|
|
duration = br.ReadInt32();
|
2016-09-24 15:38:26 +02:00
|
|
|
w = br.ReadInt32();
|
|
|
|
|
h = br.ReadInt32();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
|
|
|
|
bw.Write(Constructor);
|
2017-07-10 15:52:00 +02:00
|
|
|
ComputeFlags();
|
|
|
|
|
bw.Write(flags);
|
|
|
|
|
|
|
|
|
|
bw.Write(duration);
|
2016-09-24 15:38:26 +02:00
|
|
|
bw.Write(w);
|
|
|
|
|
bw.Write(h);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|