TLSharp/TeleSharp.TL/TL/TLPhoneCallRequested.cs

58 lines
1.4 KiB
C#
Raw Normal View History

using System.IO;
2017-12-20 12:06:31 +01:00
namespace TeleSharp.TL
{
[TLObject(-2089411356)]
public class TLPhoneCallRequested : TLAbsPhoneCall
{
2017-12-20 12:06:31 +01:00
public long AccessHash { get; set; }
public int AdminId { get; set; }
public override int Constructor
{
get
{
return -2089411356;
}
}
public int Date { get; set; }
2017-12-20 12:06:31 +01:00
public byte[] GAHash { get; set; }
2017-12-20 12:06:31 +01:00
public long Id { get; set; }
public int ParticipantId { get; set; }
public TLPhoneCallProtocol Protocol { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Id = br.ReadInt64();
AccessHash = br.ReadInt64();
Date = br.ReadInt32();
AdminId = br.ReadInt32();
ParticipantId = br.ReadInt32();
GAHash = BytesUtil.Deserialize(br);
Protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Id);
bw.Write(AccessHash);
bw.Write(Date);
bw.Write(AdminId);
bw.Write(ParticipantId);
BytesUtil.Serialize(GAHash, bw);
ObjectUtils.SerializeObject(Protocol, bw);
}
}
}