TLSharp/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs
2017-04-13 13:38:01 +07:00

37 lines
888 B
C#

using System.IO;
namespace TeleSharp.TL.Account
{
[TLObject(1669245048)]
public class TLRequestRegisterDevice : TLMethod
{
public override int Constructor => 1669245048;
public int token_type { get; set; }
public string token { get; set; }
public bool Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
token_type = br.ReadInt32();
token = StringUtil.Deserialize(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(token_type);
StringUtil.Serialize(token, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
}
}