TLSharp/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs

43 lines
1.1 KiB
C#
Raw Normal View History

2016-09-24 17:08:26 +03:30
using System.IO;
2017-04-13 13:38:01 +07:00
2016-09-24 17:08:26 +03:30
namespace TeleSharp.TL.Upload
{
2017-04-13 13:38:01 +07:00
[TLObject(-562337987)]
2016-09-24 17:08:26 +03:30
public class TLRequestSaveBigFilePart : TLMethod
{
2017-04-13 13:38:01 +07:00
public override int Constructor => -562337987;
2016-09-24 17:08:26 +03:30
2017-04-13 13:38:01 +07:00
public long file_id { get; set; }
public int file_part { get; set; }
public int file_total_parts { get; set; }
public byte[] bytes { get; set; }
public bool Response { get; set; }
2016-09-24 17:08:26 +03:30
2017-04-13 13:38:01 +07:00
public void ComputeFlags()
{
}
2016-09-24 17:08:26 +03:30
public override void DeserializeBody(BinaryReader br)
{
file_id = br.ReadInt64();
2017-04-13 13:38:01 +07:00
file_part = br.ReadInt32();
file_total_parts = br.ReadInt32();
bytes = BytesUtil.Deserialize(br);
2016-09-24 17:08:26 +03:30
}
public override void SerializeBody(BinaryWriter bw)
{
2017-04-13 13:38:01 +07:00
bw.Write(Constructor);
2016-09-24 17:08:26 +03:30
bw.Write(file_id);
2017-04-13 13:38:01 +07:00
bw.Write(file_part);
bw.Write(file_total_parts);
BytesUtil.Serialize(bytes, bw);
2016-09-24 17:08:26 +03:30
}
2017-04-13 13:38:01 +07:00
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
2016-09-24 17:08:26 +03:30
}
2017-04-13 13:38:01 +07:00
}