TLSharp/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs
Afshin Arani 133b9fdf6c TL-Layer: Update To Layer 66 (#519)
* TL-Layer: Update To Layer 66
2017-07-20 10:07:24 +08:00

58 lines
1.4 KiB
C#

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.Auth
{
[TLObject(-841733627)]
public class TLRequestBindTempAuthKey : TLMethod
{
public override int Constructor
{
get
{
return -841733627;
}
}
public long perm_auth_key_id { get; set; }
public long nonce { get; set; }
public int expires_at { get; set; }
public byte[] encrypted_message { get; set; }
public bool Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
perm_auth_key_id = br.ReadInt64();
nonce = br.ReadInt64();
expires_at = br.ReadInt32();
encrypted_message = BytesUtil.Deserialize(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(perm_auth_key_id);
bw.Write(nonce);
bw.Write(expires_at);
BytesUtil.Serialize(encrypted_message, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
}
}