TLSharp/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs
Andrzej Gołaszewski ca3a71e39a update to layer 71
code formatting
2017-12-20 12:06:31 +01:00

53 lines
1.3 KiB
C#

using System.IO;
namespace TeleSharp.TL.Phone
{
[TLObject(788404002)]
public class TLRequestConfirmCall : TLMethod
{
public override int Constructor
{
get
{
return 788404002;
}
}
public byte[] GA { get; set; }
public long KeyFingerprint { get; set; }
public TLInputPhoneCall Peer { get; set; }
public TLPhoneCallProtocol Protocol { get; set; }
public Phone.TLPhoneCall Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
GA = BytesUtil.Deserialize(br);
KeyFingerprint = br.ReadInt64();
Protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
}
public override void DeserializeResponse(BinaryReader br)
{
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(Peer, bw);
BytesUtil.Serialize(GA, bw);
bw.Write(KeyFingerprint);
ObjectUtils.SerializeObject(Protocol, bw);
}
}
}