TLSharp/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs

53 lines
1.3 KiB
C#
Raw Normal View History

using System.IO;
2017-12-20 12:06:31 +01:00
namespace TeleSharp.TL.Phone
{
[TLObject(788404002)]
public class TLRequestConfirmCall : TLMethod
{
public override int Constructor
{
get
{
return 788404002;
}
}
public byte[] GA { get; set; }
2017-12-20 12:06:31 +01:00
public long KeyFingerprint { get; set; }
2017-12-20 12:06:31 +01:00
public TLInputPhoneCall Peer { get; set; }
public TLPhoneCallProtocol Protocol { get; set; }
2017-12-20 12:06:31 +01:00
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);
2017-12-20 12:06:31 +01:00
}
2017-12-20 12:06:31 +01:00
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);
}
}
}