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

50 lines
1.1 KiB
C#

using System.IO;
namespace TeleSharp.TL
{
[TLObject(153267905)]
public class TLInputMediaPhotoExternal : TLAbsInputMedia
{
public string Caption { get; set; }
public override int Constructor
{
get
{
return 153267905;
}
}
public int Flags { get; set; }
public int? TtlSeconds { get; set; }
public string Url { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Flags = br.ReadInt32();
Url = StringUtil.Deserialize(br);
Caption = StringUtil.Deserialize(br);
if ((Flags & 1) != 0)
TtlSeconds = br.ReadInt32();
else
TtlSeconds = null;
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
StringUtil.Serialize(Url, bw);
StringUtil.Serialize(Caption, bw);
if ((Flags & 1) != 0)
bw.Write(TtlSeconds.Value);
}
}
}