mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
37 lines
888 B
C#
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);
|
|
}
|
|
}
|
|
} |