TLSharp/TeleSharp.TL/TL/TLPhoneCallRequested.cs
2017-11-09 19:37:09 +08:00

61 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
{
[TLObject(-2089411356)]
public class TLPhoneCallRequested : TLAbsPhoneCall
{
public override int Constructor
{
get
{
return -2089411356;
}
}
public long Id { get; set; }
public long AccessHash { get; set; }
public int Date { get; set; }
public int AdminId { get; set; }
public int ParticipantId { get; set; }
public byte[] GAHash { 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);
}
}
}