TLSharp/TeleSharp.TL/TL/TLInputPhoneContact.cs

46 lines
1 KiB
C#
Raw Normal View History

2016-09-24 15:38:26 +02:00
using System.IO;
2017-12-20 12:06:31 +01:00
2016-09-24 15:38:26 +02:00
namespace TeleSharp.TL
{
[TLObject(-208488460)]
2016-09-24 15:38:26 +02:00
public class TLInputPhoneContact : TLObject
{
2017-12-20 12:06:31 +01:00
public long ClientId { get; set; }
2016-09-24 15:38:26 +02:00
public override int Constructor
{
get
{
return -208488460;
}
}
public string FirstName { get; set; }
2017-12-20 12:06:31 +01:00
public string LastName { get; set; }
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public string Phone { get; set; }
2016-09-24 15:38:26 +02:00
public void ComputeFlags()
{
}
2016-09-24 15:38:26 +02:00
public override void DeserializeBody(BinaryReader br)
{
ClientId = br.ReadInt64();
Phone = StringUtil.Deserialize(br);
FirstName = StringUtil.Deserialize(br);
LastName = StringUtil.Deserialize(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(ClientId);
StringUtil.Serialize(Phone, bw);
StringUtil.Serialize(FirstName, bw);
StringUtil.Serialize(LastName, bw);
2016-09-24 15:38:26 +02:00
}
}
}