TLSharp/TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs

49 lines
1.2 KiB
C#
Raw Normal View History

using System.IO;
2017-12-20 12:06:31 +01:00
namespace TeleSharp.TL.Phone
{
[TLObject(1003664544)]
public class TLRequestAcceptCall : TLMethod
{
public override int Constructor
{
get
{
return 1003664544;
}
}
public byte[] GB { 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);
GB = BytesUtil.Deserialize(br);
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(GB, bw);
ObjectUtils.SerializeObject(Protocol, bw);
}
}
}