mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
58 lines
1.5 KiB
C#
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);
|
|
|
|
}
|
|
}
|
|
}
|