2017-07-20 04:07:24 +02:00
|
|
|
using System.IO;
|
2017-12-20 12:06:31 +01:00
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
namespace TeleSharp.TL.Bots
|
|
|
|
|
{
|
|
|
|
|
[TLObject(-1440257555)]
|
|
|
|
|
public class TLRequestSendCustomRequest : TLMethod
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return -1440257555;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public string CustomMethod { get; set; }
|
2017-12-20 12:06:31 +01:00
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public TLDataJSON Params { get; set; }
|
2017-07-20 04:07:24 +02:00
|
|
|
|
2017-12-20 12:06:31 +01:00
|
|
|
public TLDataJSON Response { get; set; }
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
2017-11-09 11:35:15 +01:00
|
|
|
CustomMethod = StringUtil.Deserialize(br);
|
|
|
|
|
Params = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
2017-12-20 12:06:31 +01:00
|
|
|
}
|
2017-07-20 04:07:24 +02:00
|
|
|
|
2017-12-20 12:06:31 +01:00
|
|
|
public override void DeserializeResponse(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
Response = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
2017-07-20 04:07:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
|
|
|
|
bw.Write(Constructor);
|
2017-11-09 11:35:15 +01:00
|
|
|
StringUtil.Serialize(CustomMethod, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(Params, bw);
|
2017-07-20 04:07:24 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|