mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
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.Upload
|
|
{
|
|
[TLObject(619086221)]
|
|
public class TLRequestGetWebFile : TLMethod
|
|
{
|
|
public override int Constructor
|
|
{
|
|
get
|
|
{
|
|
return 619086221;
|
|
}
|
|
}
|
|
|
|
public TLInputWebFileLocation Location { get; set; }
|
|
public int Offset { get; set; }
|
|
public int Limit { get; set; }
|
|
public Upload.TLWebFile Response { get; set; }
|
|
|
|
|
|
public void ComputeFlags()
|
|
{
|
|
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
{
|
|
Location = (TLInputWebFileLocation)ObjectUtils.DeserializeObject(br);
|
|
Offset = br.ReadInt32();
|
|
Limit = br.ReadInt32();
|
|
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
{
|
|
bw.Write(Constructor);
|
|
ObjectUtils.SerializeObject(Location, bw);
|
|
bw.Write(Offset);
|
|
bw.Write(Limit);
|
|
|
|
}
|
|
public override void DeserializeResponse(BinaryReader br)
|
|
{
|
|
Response = (Upload.TLWebFile)ObjectUtils.DeserializeObject(br);
|
|
|
|
}
|
|
}
|
|
}
|