TLSharp/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs

52 lines
1 KiB
C#
Raw Normal View History

2016-09-24 15:38:26 +02:00
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.Account
{
[TLObject(1669245048)]
public class TLRequestRegisterDevice : TLMethod
{
public override int Constructor
{
get
{
return 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);
}
}
}