TLSharp/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs
Andrzej Gołaszewski ca3a71e39a update to layer 71
code formatting
2017-12-20 12:06:31 +01:00

53 lines
1.2 KiB
C#

using System.IO;
namespace TeleSharp.TL.Auth
{
[TLObject(1738800940)]
public class TLRequestImportBotAuthorization : TLMethod
{
public string ApiHash { get; set; }
public int ApiId { get; set; }
public string BotAuthToken { get; set; }
public override int Constructor
{
get
{
return 1738800940;
}
}
public int Flags { get; set; }
public Auth.TLAuthorization Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Flags = br.ReadInt32();
ApiId = br.ReadInt32();
ApiHash = StringUtil.Deserialize(br);
BotAuthToken = StringUtil.Deserialize(br);
}
public override void DeserializeResponse(BinaryReader br)
{
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
bw.Write(ApiId);
StringUtil.Serialize(ApiHash, bw);
StringUtil.Serialize(BotAuthToken, bw);
}
}
}