TLSharp/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs

49 lines
1.2 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.Account
{
[TLObject(1891839707)]
2016-09-24 15:38:26 +02:00
public class TLRequestChangePhone : TLMethod
{
public override int Constructor
{
get
{
return 1891839707;
}
}
public string PhoneCode { get; set; }
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public string PhoneCodeHash { get; set; }
public string PhoneNumber { get; set; }
public TLAbsUser Response { 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)
{
PhoneNumber = StringUtil.Deserialize(br);
PhoneCodeHash = StringUtil.Deserialize(br);
PhoneCode = StringUtil.Deserialize(br);
2017-12-20 12:06:31 +01:00
}
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public override void DeserializeResponse(BinaryReader br)
{
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
StringUtil.Serialize(PhoneNumber, bw);
StringUtil.Serialize(PhoneCodeHash, bw);
StringUtil.Serialize(PhoneCode, bw);
}
2016-09-24 15:38:26 +02:00
}
}