TLSharp/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs
2017-11-09 19:37:09 +08:00

58 lines
1.5 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.Phone
{
[TLObject(1536537556)]
public class TLRequestRequestCall : TLMethod
{
public override int Constructor
{
get
{
return 1536537556;
}
}
public TLAbsInputUser UserId { get; set; }
public int RandomId { get; set; }
public byte[] GAHash { get; set; }
public TLPhoneCallProtocol Protocol { get; set; }
public Phone.TLPhoneCall Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
RandomId = br.ReadInt32();
GAHash = BytesUtil.Deserialize(br);
Protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(UserId, bw);
bw.Write(RandomId);
BytesUtil.Serialize(GAHash, bw);
ObjectUtils.SerializeObject(Protocol, bw);
}
public override void DeserializeResponse(BinaryReader br)
{
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
}
}
}