mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 06:55:06 +00:00
parent
0d55940c12
commit
133b9fdf6c
784 changed files with 17201 additions and 10048 deletions
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(307276766)]
|
||||
[TLObject(307276766)]
|
||||
public class TLAuthorizations : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAuthorization> authorizations {get;set;}
|
||||
public TLVector<TLAuthorization> authorizations { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(authorizations,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(authorizations, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1764049896)]
|
||||
[TLObject(-1764049896)]
|
||||
public class TLNoPassword : TLAbsPassword
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] new_salt {get;set;}
|
||||
public string email_unconfirmed_pattern {get;set;}
|
||||
public byte[] new_salt { get; set; }
|
||||
public string email_unconfirmed_pattern { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
new_salt = BytesUtil.Deserialize(br);
|
||||
email_unconfirmed_pattern = StringUtil.Deserialize(br);
|
||||
email_unconfirmed_pattern = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(new_salt,bw);
|
||||
StringUtil.Serialize(email_unconfirmed_pattern,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(new_salt, bw);
|
||||
StringUtil.Serialize(email_unconfirmed_pattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(2081952796)]
|
||||
[TLObject(2081952796)]
|
||||
public class TLPassword : TLAbsPassword
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,36 +18,36 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
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 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 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);
|
||||
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);
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-2037289493)]
|
||||
[TLObject(-2037289493)]
|
||||
public class TLPasswordInputSettings : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,62 +18,62 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public byte[] new_salt {get;set;}
|
||||
public byte[] new_password_hash {get;set;}
|
||||
public string hint {get;set;}
|
||||
public string email {get;set;}
|
||||
public int flags { get; set; }
|
||||
public byte[] new_salt { get; set; }
|
||||
public byte[] new_password_hash { get; set; }
|
||||
public string hint { get; set; }
|
||||
public string email { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = new_salt != null ? (flags | 1) : (flags & ~1);
|
||||
flags = new_password_hash != null ? (flags | 1) : (flags & ~1);
|
||||
flags = hint != null ? (flags | 1) : (flags & ~1);
|
||||
flags = email != null ? (flags | 2) : (flags & ~2);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = new_salt != null ? (flags | 1) : (flags & ~1);
|
||||
flags = new_password_hash != null ? (flags | 1) : (flags & ~1);
|
||||
flags = hint != null ? (flags | 1) : (flags & ~1);
|
||||
flags = email != null ? (flags | 2) : (flags & ~2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
if ((flags & 1) != 0)
|
||||
new_salt = BytesUtil.Deserialize(br);
|
||||
else
|
||||
new_salt = null;
|
||||
if ((flags & 1) != 0)
|
||||
new_salt = BytesUtil.Deserialize(br);
|
||||
else
|
||||
new_salt = null;
|
||||
|
||||
if ((flags & 1) != 0)
|
||||
new_password_hash = BytesUtil.Deserialize(br);
|
||||
else
|
||||
new_password_hash = null;
|
||||
if ((flags & 1) != 0)
|
||||
new_password_hash = BytesUtil.Deserialize(br);
|
||||
else
|
||||
new_password_hash = null;
|
||||
|
||||
if ((flags & 1) != 0)
|
||||
hint = StringUtil.Deserialize(br);
|
||||
else
|
||||
hint = null;
|
||||
if ((flags & 1) != 0)
|
||||
hint = StringUtil.Deserialize(br);
|
||||
else
|
||||
hint = null;
|
||||
|
||||
if ((flags & 2) != 0)
|
||||
email = StringUtil.Deserialize(br);
|
||||
else
|
||||
email = null;
|
||||
if ((flags & 2) != 0)
|
||||
email = StringUtil.Deserialize(br);
|
||||
else
|
||||
email = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(new_salt,bw);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(new_password_hash,bw);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(hint,bw);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(email,bw);
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(new_salt, bw);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(new_password_hash, bw);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(hint, bw);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(email, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1212732749)]
|
||||
[TLObject(-1212732749)]
|
||||
public class TLPasswordSettings : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string email {get;set;}
|
||||
public string email { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(email,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(email, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1430961007)]
|
||||
[TLObject(1430961007)]
|
||||
public class TLPrivacyRules : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsPrivacyRule> rules {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLVector<TLAbsPrivacyRule> rules { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
rules = (TLVector<TLAbsPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsPrivacyRule>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(rules,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(rules, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1891839707)]
|
||||
[TLObject(1891839707)]
|
||||
public class TLRequestChangePhone : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_number {get;set;}
|
||||
public string phone_code_hash {get;set;}
|
||||
public string phone_code {get;set;}
|
||||
public TLAbsUser Response{ get; set;}
|
||||
public string phone_number { get; set; }
|
||||
public string phone_code_hash { get; set; }
|
||||
public string phone_code { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
StringUtil.Serialize(phone_code,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
StringUtil.Serialize(phone_code, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(655677548)]
|
||||
[TLObject(655677548)]
|
||||
public class TLRequestCheckUsername : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string username {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public string username { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1596029123)]
|
||||
[TLObject(1596029123)]
|
||||
public class TLRequestConfirmPhone : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_code_hash {get;set;}
|
||||
public string phone_code {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public string phone_code_hash { get; set; }
|
||||
public string phone_code { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
StringUtil.Serialize(phone_code,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
StringUtil.Serialize(phone_code, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1099779595)]
|
||||
[TLObject(1099779595)]
|
||||
public class TLRequestDeleteAccount : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string reason {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public string reason { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(reason,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(reason, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(150761757)]
|
||||
[TLObject(150761757)]
|
||||
public class TLRequestGetAccountTTL : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAccountDaysTTL Response{ get; set;}
|
||||
public TLAccountDaysTTL Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-484392616)]
|
||||
[TLObject(-484392616)]
|
||||
public class TLRequestGetAuthorizations : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public Account.TLAuthorizations Response{ get; set;}
|
||||
public Account.TLAuthorizations Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAuthorizations)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAuthorizations)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(313765169)]
|
||||
[TLObject(313765169)]
|
||||
public class TLRequestGetNotifySettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputNotifyPeer peer {get;set;}
|
||||
public TLAbsPeerNotifySettings Response{ get; set;}
|
||||
public TLAbsInputNotifyPeer peer { get; set; }
|
||||
public TLAbsPeerNotifySettings Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1418342645)]
|
||||
[TLObject(1418342645)]
|
||||
public class TLRequestGetPassword : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public Account.TLAbsPassword Response{ get; set;}
|
||||
public Account.TLAbsPassword Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAbsPassword)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAbsPassword)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1131605573)]
|
||||
[TLObject(-1131605573)]
|
||||
public class TLRequestGetPasswordSettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] current_password_hash {get;set;}
|
||||
public Account.TLPasswordSettings Response{ get; set;}
|
||||
public byte[] current_password_hash { get; set; }
|
||||
public Account.TLPasswordSettings Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_password_hash,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_password_hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-623130288)]
|
||||
[TLObject(-623130288)]
|
||||
public class TLRequestGetPrivacy : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPrivacyKey key {get;set;}
|
||||
public Account.TLPrivacyRules Response{ get; set;}
|
||||
public TLAbsInputPrivacyKey key { get; set; }
|
||||
public Account.TLPrivacyRules Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(key,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(key, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
51
TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs
Normal file
51
TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
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(1250046590)]
|
||||
public class TLRequestGetTmpPassword : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1250046590;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] password_hash { get; set; }
|
||||
public int period { get; set; }
|
||||
public Account.TLTmpPassword Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
password_hash = BytesUtil.Deserialize(br);
|
||||
period = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(password_hash, bw);
|
||||
bw.Write(period);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLTmpPassword)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1068696894)]
|
||||
[TLObject(-1068696894)]
|
||||
public class TLRequestGetWallPapers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsWallPaper> Response{ get; set;}
|
||||
public TLVector<TLAbsWallPaper> Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLAbsWallPaper>)ObjectUtils.DeserializeVector<TLAbsWallPaper>(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLAbsWallPaper>)ObjectUtils.DeserializeVector<TLAbsWallPaper>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1669245048)]
|
||||
[TLObject(1669245048)]
|
||||
public class TLRequestRegisterDevice : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int token_type {get;set;}
|
||||
public string token {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int token_type { get; set; }
|
||||
public string token { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
token_type = br.ReadInt32();
|
||||
token = StringUtil.Deserialize(br);
|
||||
token = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(token_type);
|
||||
StringUtil.Serialize(token,bw);
|
||||
StringUtil.Serialize(token, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1374118561)]
|
||||
[TLObject(-1374118561)]
|
||||
public class TLRequestReportPeer : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public TLAbsReportReason reason {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public TLAbsReportReason reason { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
reason = (TLAbsReportReason)ObjectUtils.DeserializeObject(br);
|
||||
reason = (TLAbsReportReason)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
ObjectUtils.SerializeObject(reason,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(reason, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-545786948)]
|
||||
[TLObject(-545786948)]
|
||||
public class TLRequestResetAuthorization : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public long hash {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public long hash { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-612493497)]
|
||||
[TLObject(-612493497)]
|
||||
public class TLRequestResetNotifySettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public bool Response{ get; set;}
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(149257707)]
|
||||
[TLObject(149257707)]
|
||||
public class TLRequestSendChangePhoneCode : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,49 +18,49 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool allow_flashcall {get;set;}
|
||||
public string phone_number {get;set;}
|
||||
public bool? current_number {get;set;}
|
||||
public Auth.TLSentCode Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool allow_flashcall { get; set; }
|
||||
public string phone_number { get; set; }
|
||||
public bool? current_number { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value,bw);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(353818557)]
|
||||
[TLObject(353818557)]
|
||||
public class TLRequestSendConfirmPhoneCode : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,49 +18,49 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool allow_flashcall {get;set;}
|
||||
public string hash {get;set;}
|
||||
public bool? current_number {get;set;}
|
||||
public Auth.TLSentCode Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool allow_flashcall { get; set; }
|
||||
public string hash { get; set; }
|
||||
public bool? current_number { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
hash = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
hash = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
StringUtil.Serialize(hash,bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value,bw);
|
||||
StringUtil.Serialize(hash, bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(608323678)]
|
||||
[TLObject(608323678)]
|
||||
public class TLRequestSetAccountTTL : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAccountDaysTTL ttl {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAccountDaysTTL ttl { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(ttl,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(ttl, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-906486552)]
|
||||
[TLObject(-906486552)]
|
||||
public class TLRequestSetPrivacy : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPrivacyKey key {get;set;}
|
||||
public TLVector<TLAbsInputPrivacyRule> rules {get;set;}
|
||||
public Account.TLPrivacyRules Response{ get; set;}
|
||||
public TLAbsInputPrivacyKey key { get; set; }
|
||||
public TLVector<TLAbsInputPrivacyRule> rules { get; set; }
|
||||
public Account.TLPrivacyRules Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
key = (TLAbsInputPrivacyKey)ObjectUtils.DeserializeObject(br);
|
||||
rules = (TLVector<TLAbsInputPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsInputPrivacyRule>(br);
|
||||
rules = (TLVector<TLAbsInputPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsInputPrivacyRule>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(key,bw);
|
||||
ObjectUtils.SerializeObject(rules,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(key, bw);
|
||||
ObjectUtils.SerializeObject(rules, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1707432768)]
|
||||
[TLObject(1707432768)]
|
||||
public class TLRequestUnregisterDevice : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int token_type {get;set;}
|
||||
public string token {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int token_type { get; set; }
|
||||
public string token { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
token_type = br.ReadInt32();
|
||||
token = StringUtil.Deserialize(br);
|
||||
token = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(token_type);
|
||||
StringUtil.Serialize(token,bw);
|
||||
StringUtil.Serialize(token, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(954152242)]
|
||||
[TLObject(954152242)]
|
||||
public class TLRequestUpdateDeviceLocked : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int period {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int period { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(period);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-2067899501)]
|
||||
[TLObject(-2067899501)]
|
||||
public class TLRequestUpdateNotifySettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputNotifyPeer peer {get;set;}
|
||||
public TLInputPeerNotifySettings settings {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputNotifyPeer peer { get; set; }
|
||||
public TLInputPeerNotifySettings settings { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputNotifyPeer)ObjectUtils.DeserializeObject(br);
|
||||
settings = (TLInputPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
settings = (TLInputPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
ObjectUtils.SerializeObject(settings,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(settings, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-92517498)]
|
||||
[TLObject(-92517498)]
|
||||
public class TLRequestUpdatePasswordSettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] current_password_hash {get;set;}
|
||||
public Account.TLPasswordInputSettings new_settings {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public byte[] current_password_hash { get; set; }
|
||||
public Account.TLPasswordInputSettings new_settings { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
current_password_hash = BytesUtil.Deserialize(br);
|
||||
new_settings = (Account.TLPasswordInputSettings)ObjectUtils.DeserializeObject(br);
|
||||
new_settings = (Account.TLPasswordInputSettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_password_hash,bw);
|
||||
ObjectUtils.SerializeObject(new_settings,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_password_hash, bw);
|
||||
ObjectUtils.SerializeObject(new_settings, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(2018596725)]
|
||||
[TLObject(2018596725)]
|
||||
public class TLRequestUpdateProfile : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,60 +18,60 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public string first_name {get;set;}
|
||||
public string last_name {get;set;}
|
||||
public string about {get;set;}
|
||||
public TLAbsUser Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public string first_name { get; set; }
|
||||
public string last_name { get; set; }
|
||||
public string about { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = first_name != null ? (flags | 1) : (flags & ~1);
|
||||
flags = last_name != null ? (flags | 2) : (flags & ~2);
|
||||
flags = about != null ? (flags | 4) : (flags & ~4);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = first_name != null ? (flags | 1) : (flags & ~1);
|
||||
flags = last_name != null ? (flags | 2) : (flags & ~2);
|
||||
flags = about != null ? (flags | 4) : (flags & ~4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
if ((flags & 1) != 0)
|
||||
first_name = StringUtil.Deserialize(br);
|
||||
else
|
||||
first_name = null;
|
||||
if ((flags & 1) != 0)
|
||||
first_name = StringUtil.Deserialize(br);
|
||||
else
|
||||
first_name = null;
|
||||
|
||||
if ((flags & 2) != 0)
|
||||
last_name = StringUtil.Deserialize(br);
|
||||
else
|
||||
last_name = null;
|
||||
if ((flags & 2) != 0)
|
||||
last_name = StringUtil.Deserialize(br);
|
||||
else
|
||||
last_name = null;
|
||||
|
||||
if ((flags & 4) != 0)
|
||||
about = StringUtil.Deserialize(br);
|
||||
else
|
||||
about = null;
|
||||
if ((flags & 4) != 0)
|
||||
about = StringUtil.Deserialize(br);
|
||||
else
|
||||
about = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(first_name,bw);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(last_name,bw);
|
||||
if ((flags & 4) != 0)
|
||||
StringUtil.Serialize(about,bw);
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(first_name, bw);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(last_name, bw);
|
||||
if ((flags & 4) != 0)
|
||||
StringUtil.Serialize(about, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1713919532)]
|
||||
[TLObject(1713919532)]
|
||||
public class TLRequestUpdateStatus : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public bool offline {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public bool offline { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BoolUtil.Serialize(offline,bw);
|
||||
bw.Write(Constructor);
|
||||
BoolUtil.Serialize(offline, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1040964988)]
|
||||
[TLObject(1040964988)]
|
||||
public class TLRequestUpdateUsername : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string username {get;set;}
|
||||
public TLAbsUser Response{ get; set;}
|
||||
public string username { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
45
TeleSharp.TL/TL/Account/TLTmpPassword.cs
Normal file
45
TeleSharp.TL/TL/Account/TLTmpPassword.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
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(-614138572)]
|
||||
public class TLTmpPassword : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -614138572;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] tmp_password { get; set; }
|
||||
public int valid_until { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
tmp_password = BytesUtil.Deserialize(br);
|
||||
valid_until = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(tmp_password, bw);
|
||||
bw.Write(valid_until);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue