TLSharp/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs

58 lines
1.5 KiB
C#
Raw Normal View History

2017-07-10 15:52:00 +02:00
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.Phone
{
2017-07-20 00:36:50 +02:00
[TLObject(1536537556)]
2017-07-10 15:52:00 +02:00
public class TLRequestRequestCall : TLMethod
{
public override int Constructor
{
get
{
return 1536537556;
}
}
2017-07-20 00:36:50 +02:00
public TLAbsInputUser user_id { get; set; }
public int random_id { get; set; }
public byte[] g_a_hash { get; set; }
public TLPhoneCallProtocol protocol { get; set; }
public Phone.TLPhoneCall Response { get; set; }
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
public void ComputeFlags()
{
}
2017-07-10 15:52:00 +02:00
public override void DeserializeBody(BinaryReader br)
{
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
2017-07-20 00:36:50 +02:00
random_id = br.ReadInt32();
g_a_hash = BytesUtil.Deserialize(br);
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
2017-07-10 15:52:00 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
2017-07-20 00:36:50 +02:00
bw.Write(Constructor);
ObjectUtils.SerializeObject(user_id, bw);
bw.Write(random_id);
BytesUtil.Serialize(g_a_hash, bw);
ObjectUtils.SerializeObject(protocol, bw);
2017-07-10 15:52:00 +02:00
}
2017-07-20 00:36:50 +02:00
public override void deserializeResponse(BinaryReader br)
{
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
}
2017-07-10 15:52:00 +02:00
}
}