2017-07-20 04:07:24 +02:00
|
|
|
using System.IO;
|
2017-09-24 10:19:06 +02:00
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
namespace TeleSharp.TL.Upload
|
|
|
|
|
{
|
|
|
|
|
[TLObject(536919235)]
|
|
|
|
|
public class TLRequestGetCdnFile : TLMethod
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 536919235;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public byte[] file_token { get; set; }
|
|
|
|
|
public int offset { get; set; }
|
|
|
|
|
public int limit { get; set; }
|
|
|
|
|
public Upload.TLAbsCdnFile Response { get; set; }
|
|
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
file_token = BytesUtil.Deserialize(br);
|
|
|
|
|
offset = br.ReadInt32();
|
|
|
|
|
limit = br.ReadInt32();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
|
|
|
|
bw.Write(Constructor);
|
|
|
|
|
BytesUtil.Serialize(file_token, bw);
|
|
|
|
|
bw.Write(offset);
|
|
|
|
|
bw.Write(limit);
|
|
|
|
|
}
|
2017-09-24 10:19:06 +02:00
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
public override void deserializeResponse(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
Response = (Upload.TLAbsCdnFile)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-24 10:19:06 +02:00
|
|
|
}
|