2017-07-20 04:07:24 +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
|
|
|
|
|
{
|
|
|
|
|
[TLObject(788404002)]
|
|
|
|
|
public class TLRequestConfirmCall : TLMethod
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 788404002;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public TLInputPhoneCall Peer { get; set; }
|
|
|
|
|
public byte[] GA { get; set; }
|
|
|
|
|
public long KeyFingerprint { get; set; }
|
|
|
|
|
public TLPhoneCallProtocol Protocol { get; set; }
|
2017-07-20 04:07:24 +02:00
|
|
|
public Phone.TLPhoneCall Response { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
2017-11-09 11:35:15 +01:00
|
|
|
Peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
GA = BytesUtil.Deserialize(br);
|
|
|
|
|
KeyFingerprint = br.ReadInt64();
|
|
|
|
|
Protocol = (TLPhoneCallProtocol)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
|
|
|
ObjectUtils.SerializeObject(Peer, bw);
|
|
|
|
|
BytesUtil.Serialize(GA, bw);
|
|
|
|
|
bw.Write(KeyFingerprint);
|
|
|
|
|
ObjectUtils.SerializeObject(Protocol, bw);
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
}
|
2017-11-09 11:35:15 +01:00
|
|
|
public override void DeserializeResponse(BinaryReader br)
|
2017-07-20 04:07:24 +02:00
|
|
|
{
|
|
|
|
|
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|