mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +00:00
Generator Must Respect MS .NET API guidelines
This commit is contained in:
parent
3ba3ea53fd
commit
d769dd3c2f
646 changed files with 7213 additions and 7166 deletions
|
|
@ -18,8 +18,8 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLContactBlocked> blocked { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public TLVector<TLContactBlocked> Blocked { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -29,16 +29,16 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
Blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(blocked, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(Blocked, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public int count { get; set; }
|
||||
public TLVector<TLContactBlocked> blocked { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public int Count { get; set; }
|
||||
public TLVector<TLContactBlocked> Blocked { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -30,18 +30,18 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
count = br.ReadInt32();
|
||||
blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
Count = br.ReadInt32();
|
||||
Blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(blocked, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
bw.Write(Count);
|
||||
ObjectUtils.SerializeObject(Blocked, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLContact> contacts { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public TLVector<TLContact> Contacts { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -29,16 +29,16 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
contacts = (TLVector<TLContact>)ObjectUtils.DeserializeVector<TLContact>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
Contacts = (TLVector<TLContact>)ObjectUtils.DeserializeVector<TLContact>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(contacts, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(Contacts, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsPeer> results { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public TLVector<TLAbsPeer> Results { get; set; }
|
||||
public TLVector<TLAbsChat> Chats { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -30,18 +30,18 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
results = (TLVector<TLAbsPeer>)ObjectUtils.DeserializeVector<TLAbsPeer>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
Results = (TLVector<TLAbsPeer>)ObjectUtils.DeserializeVector<TLAbsPeer>(br);
|
||||
Chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(results, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(Results, bw);
|
||||
ObjectUtils.SerializeObject(Chats, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLImportedContact> imported { get; set; }
|
||||
public TLVector<long> retry_contacts { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public TLVector<TLImportedContact> Imported { get; set; }
|
||||
public TLVector<long> RetryContacts { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -30,18 +30,18 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
imported = (TLVector<TLImportedContact>)ObjectUtils.DeserializeVector<TLImportedContact>(br);
|
||||
retry_contacts = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
Imported = (TLVector<TLImportedContact>)ObjectUtils.DeserializeVector<TLImportedContact>(br);
|
||||
RetryContacts = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(imported, bw);
|
||||
ObjectUtils.SerializeObject(retry_contacts, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(Imported, bw);
|
||||
ObjectUtils.SerializeObject(RetryContacts, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsContactLink my_link { get; set; }
|
||||
public TLAbsContactLink foreign_link { get; set; }
|
||||
public TLAbsUser user { get; set; }
|
||||
public TLAbsContactLink MyLink { get; set; }
|
||||
public TLAbsContactLink ForeignLink { get; set; }
|
||||
public TLAbsUser User { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -30,18 +30,18 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br);
|
||||
foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br);
|
||||
user = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
MyLink = (TLAbsContactLink)ObjectUtils.DeserializeObject(br);
|
||||
ForeignLink = (TLAbsContactLink)ObjectUtils.DeserializeObject(br);
|
||||
User = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(my_link, bw);
|
||||
ObjectUtils.SerializeObject(foreign_link, bw);
|
||||
ObjectUtils.SerializeObject(user, bw);
|
||||
ObjectUtils.SerializeObject(MyLink, bw);
|
||||
ObjectUtils.SerializeObject(ForeignLink, bw);
|
||||
ObjectUtils.SerializeObject(User, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputUser id { get; set; }
|
||||
public TLAbsInputUser Id { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
Id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputUser id { get; set; }
|
||||
public TLAbsInputUser Id { get; set; }
|
||||
public Contacts.TLLink Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
Id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLLink)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsInputUser> id { get; set; }
|
||||
public TLVector<TLAbsInputUser> Id { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = (TLVector<TLAbsInputUser>)ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
|
||||
Id = (TLVector<TLAbsInputUser>)ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace TeleSharp.TL.Contacts
|
|||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public int offset { get; set; }
|
||||
public int limit { get; set; }
|
||||
public int Offset { get; set; }
|
||||
public int Limit { get; set; }
|
||||
public Contacts.TLAbsBlocked Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -30,19 +30,19 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
offset = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
Offset = br.ReadInt32();
|
||||
Limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(offset);
|
||||
bw.Write(limit);
|
||||
bw.Write(Offset);
|
||||
bw.Write(Limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLAbsBlocked)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public string hash { get; set; }
|
||||
public string Hash { get; set; }
|
||||
public Contacts.TLAbsContacts Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
hash = StringUtil.Deserialize(br);
|
||||
Hash = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(hash, bw);
|
||||
StringUtil.Serialize(Hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLAbsContacts)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace TeleSharp.TL.Contacts
|
|||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLContactStatus>)ObjectUtils.DeserializeVector<TLContactStatus>(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,43 +18,43 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public int flags { get; set; }
|
||||
public bool correspondents { get; set; }
|
||||
public bool bots_pm { get; set; }
|
||||
public bool bots_inline { get; set; }
|
||||
public bool phone_calls { get; set; }
|
||||
public bool groups { get; set; }
|
||||
public bool channels { get; set; }
|
||||
public int offset { get; set; }
|
||||
public int limit { get; set; }
|
||||
public int hash { get; set; }
|
||||
public int Flags { get; set; }
|
||||
public bool Correspondents { get; set; }
|
||||
public bool BotsPm { get; set; }
|
||||
public bool BotsInline { get; set; }
|
||||
public bool PhoneCalls { get; set; }
|
||||
public bool Groups { get; set; }
|
||||
public bool Channels { get; set; }
|
||||
public int Offset { get; set; }
|
||||
public int Limit { get; set; }
|
||||
public int Hash { get; set; }
|
||||
public Contacts.TLAbsTopPeers Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = correspondents ? (flags | 1) : (flags & ~1);
|
||||
flags = bots_pm ? (flags | 2) : (flags & ~2);
|
||||
flags = bots_inline ? (flags | 4) : (flags & ~4);
|
||||
flags = phone_calls ? (flags | 8) : (flags & ~8);
|
||||
flags = groups ? (flags | 1024) : (flags & ~1024);
|
||||
flags = channels ? (flags | 32768) : (flags & ~32768);
|
||||
Flags = 0;
|
||||
Flags = Correspondents ? (Flags | 1) : (Flags & ~1);
|
||||
Flags = BotsPm ? (Flags | 2) : (Flags & ~2);
|
||||
Flags = BotsInline ? (Flags | 4) : (Flags & ~4);
|
||||
Flags = PhoneCalls ? (Flags | 8) : (Flags & ~8);
|
||||
Flags = Groups ? (Flags | 1024) : (Flags & ~1024);
|
||||
Flags = Channels ? (Flags | 32768) : (Flags & ~32768);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
correspondents = (flags & 1) != 0;
|
||||
bots_pm = (flags & 2) != 0;
|
||||
bots_inline = (flags & 4) != 0;
|
||||
phone_calls = (flags & 8) != 0;
|
||||
groups = (flags & 1024) != 0;
|
||||
channels = (flags & 32768) != 0;
|
||||
offset = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
hash = br.ReadInt32();
|
||||
Flags = br.ReadInt32();
|
||||
Correspondents = (Flags & 1) != 0;
|
||||
BotsPm = (Flags & 2) != 0;
|
||||
BotsInline = (Flags & 4) != 0;
|
||||
PhoneCalls = (Flags & 8) != 0;
|
||||
Groups = (Flags & 1024) != 0;
|
||||
Channels = (Flags & 32768) != 0;
|
||||
Offset = br.ReadInt32();
|
||||
Limit = br.ReadInt32();
|
||||
Hash = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -62,19 +62,19 @@ namespace TeleSharp.TL.Contacts
|
|||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(Flags);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bw.Write(offset);
|
||||
bw.Write(limit);
|
||||
bw.Write(hash);
|
||||
bw.Write(Offset);
|
||||
bw.Write(Limit);
|
||||
bw.Write(Hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLAbsTopPeers)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<int> export_card { get; set; }
|
||||
public TLVector<int> ExportCard { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
export_card = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
ExportCard = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(export_card, bw);
|
||||
ObjectUtils.SerializeObject(ExportCard, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLInputPhoneContact> contacts { get; set; }
|
||||
public bool replace { get; set; }
|
||||
public TLVector<TLInputPhoneContact> Contacts { get; set; }
|
||||
public bool Replace { get; set; }
|
||||
public Contacts.TLImportedContacts Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -30,19 +30,19 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
contacts = (TLVector<TLInputPhoneContact>)ObjectUtils.DeserializeVector<TLInputPhoneContact>(br);
|
||||
replace = BoolUtil.Deserialize(br);
|
||||
Contacts = (TLVector<TLInputPhoneContact>)ObjectUtils.DeserializeVector<TLInputPhoneContact>(br);
|
||||
Replace = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(contacts, bw);
|
||||
BoolUtil.Serialize(replace, bw);
|
||||
ObjectUtils.SerializeObject(Contacts, bw);
|
||||
BoolUtil.Serialize(Replace, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLImportedContacts)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsTopPeerCategory category { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public TLAbsTopPeerCategory Category { get; set; }
|
||||
public TLAbsInputPeer Peer { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -30,19 +30,19 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
category = (TLAbsTopPeerCategory)ObjectUtils.DeserializeObject(br);
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
Category = (TLAbsTopPeerCategory)ObjectUtils.DeserializeObject(br);
|
||||
Peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(category, bw);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(Category, bw);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public string username { get; set; }
|
||||
public string Username { get; set; }
|
||||
public Contacts.TLResolvedPeer Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
username = StringUtil.Deserialize(br);
|
||||
Username = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username, bw);
|
||||
StringUtil.Serialize(Username, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLResolvedPeer)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public string q { get; set; }
|
||||
public int limit { get; set; }
|
||||
public string Q { get; set; }
|
||||
public int Limit { get; set; }
|
||||
public Contacts.TLFound Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -30,19 +30,19 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
q = StringUtil.Deserialize(br);
|
||||
limit = br.ReadInt32();
|
||||
Q = StringUtil.Deserialize(br);
|
||||
Limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(q, bw);
|
||||
bw.Write(limit);
|
||||
StringUtil.Serialize(Q, bw);
|
||||
bw.Write(Limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLFound)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputUser id { get; set; }
|
||||
public TLAbsInputUser Id { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
Id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsPeer peer { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public TLAbsPeer Peer { get; set; }
|
||||
public TLVector<TLAbsChat> Chats { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -30,18 +30,18 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
Peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
|
||||
Chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
ObjectUtils.SerializeObject(Chats, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLTopPeerCategoryPeers> categories { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public TLVector<TLTopPeerCategoryPeers> Categories { get; set; }
|
||||
public TLVector<TLAbsChat> Chats { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -30,18 +30,18 @@ namespace TeleSharp.TL.Contacts
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
categories = (TLVector<TLTopPeerCategoryPeers>)ObjectUtils.DeserializeVector<TLTopPeerCategoryPeers>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
Categories = (TLVector<TLTopPeerCategoryPeers>)ObjectUtils.DeserializeVector<TLTopPeerCategoryPeers>(br);
|
||||
Chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(categories, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(Categories, bw);
|
||||
ObjectUtils.SerializeObject(Chats, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue