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

40 lines
1.2 KiB
C#

using System.IO;
namespace TeleSharp.TL.Account
{
[TLObject(2081952796)]
public class TLPassword : TLAbsPassword
{
public override int Constructor => 2081952796;
public byte[] current_salt { get; set; }
public byte[] new_salt { get; set; }
public string hint { get; set; }
public bool has_recovery { get; set; }
public string email_unconfirmed_pattern { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
current_salt = BytesUtil.Deserialize(br);
new_salt = BytesUtil.Deserialize(br);
hint = StringUtil.Deserialize(br);
has_recovery = BoolUtil.Deserialize(br);
email_unconfirmed_pattern = StringUtil.Deserialize(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
BytesUtil.Serialize(current_salt, bw);
BytesUtil.Serialize(new_salt, bw);
StringUtil.Serialize(hint, bw);
BoolUtil.Serialize(has_recovery, bw);
StringUtil.Serialize(email_unconfirmed_pattern, bw);
}
}
}