apply resharper's code style

This commit is contained in:
Viktor Borisov 2017-04-13 13:38:01 +07:00
parent 1697db9d7f
commit 7fad829dd2
776 changed files with 14393 additions and 24502 deletions

View file

@ -1,13 +1,6 @@
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.Contacts
{
public abstract class TLAbsBlocked : TLObject
{
}
}
}

View file

@ -1,13 +1,6 @@
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.Contacts
{
public abstract class TLAbsContacts : TLObject
{
}
}
}

View file

@ -1,13 +1,6 @@
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.Contacts
{
public abstract class TLAbsTopPeers : TLObject
{
}
}
}

View file

@ -1,45 +1,31 @@
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.Contacts
{
[TLObject(471043349)]
[TLObject(471043349)]
public class TLBlocked : TLAbsBlocked
{
public override int Constructor
public override int Constructor => 471043349;
public TLVector<TLContactBlocked> blocked { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return 471043349;
}
}
public TLVector<TLContactBlocked> blocked {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
blocked = ObjectUtils.DeserializeVector<TLContactBlocked>(br);
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(blocked,bw);
ObjectUtils.SerializeObject(users,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(blocked, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(-1878523231)]
[TLObject(-1878523231)]
public class TLBlockedSlice : TLAbsBlocked
{
public override int Constructor
public override int Constructor => -1878523231;
public int count { get; set; }
public TLVector<TLContactBlocked> blocked { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return -1878523231;
}
}
public int count {get;set;}
public TLVector<TLContactBlocked> blocked {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
count = br.ReadInt32();
blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
blocked = ObjectUtils.DeserializeVector<TLContactBlocked>(br);
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
bw.Write(count);
ObjectUtils.SerializeObject(blocked,bw);
ObjectUtils.SerializeObject(users,bw);
ObjectUtils.SerializeObject(blocked, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,45 +1,31 @@
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.Contacts
{
[TLObject(1871416498)]
[TLObject(1871416498)]
public class TLContacts : TLAbsContacts
{
public override int Constructor
public override int Constructor => 1871416498;
public TLVector<TLContact> contacts { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return 1871416498;
}
}
public TLVector<TLContact> contacts {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
contacts = (TLVector<TLContact>)ObjectUtils.DeserializeVector<TLContact>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
contacts = ObjectUtils.DeserializeVector<TLContact>(br);
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(contacts,bw);
ObjectUtils.SerializeObject(users,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(contacts, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,39 +1,24 @@
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.Contacts
{
[TLObject(-1219778094)]
[TLObject(-1219778094)]
public class TLContactsNotModified : TLAbsContacts
{
public override int Constructor
public override int Constructor => -1219778094;
public void ComputeFlags()
{
get
{
return -1219778094;
}
}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(446822276)]
[TLObject(446822276)]
public class TLFound : TLObject
{
public override int Constructor
public override int Constructor => 446822276;
public TLVector<TLAbsPeer> results { get; set; }
public TLVector<TLAbsChat> chats { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return 446822276;
}
}
public TLVector<TLAbsPeer> results {get;set;}
public TLVector<TLAbsChat> chats {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
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 = ObjectUtils.DeserializeVector<TLAbsPeer>(br);
chats = ObjectUtils.DeserializeVector<TLAbsChat>(br);
users = 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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(results, bw);
ObjectUtils.SerializeObject(chats, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(-1387117803)]
[TLObject(-1387117803)]
public class TLImportedContacts : TLObject
{
public override int Constructor
public override int Constructor => -1387117803;
public TLVector<TLImportedContact> imported { get; set; }
public TLVector<long> retry_contacts { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return -1387117803;
}
}
public TLVector<TLImportedContact> imported {get;set;}
public TLVector<long> retry_contacts {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
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 = ObjectUtils.DeserializeVector<TLImportedContact>(br);
retry_contacts = ObjectUtils.DeserializeVector<long>(br);
users = 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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(imported, bw);
ObjectUtils.SerializeObject(retry_contacts, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(986597452)]
[TLObject(986597452)]
public class TLLink : TLObject
{
public override int Constructor
public override int Constructor => 986597452;
public TLAbsContactLink my_link { get; set; }
public TLAbsContactLink foreign_link { get; set; }
public TLAbsUser user { get; set; }
public void ComputeFlags()
{
get
{
return 986597452;
}
}
public TLAbsContactLink my_link {get;set;}
public TLAbsContactLink foreign_link {get;set;}
public TLAbsUser user {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br);
foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br);
user = (TLAbsUser)ObjectUtils.DeserializeObject(br);
my_link = (TLAbsContactLink) ObjectUtils.DeserializeObject(br);
foreign_link = (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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(my_link, bw);
ObjectUtils.SerializeObject(foreign_link, bw);
ObjectUtils.SerializeObject(user, bw);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(858475004)]
[TLObject(858475004)]
public class TLRequestBlock : TLMethod
{
public override int Constructor
public override int Constructor => 858475004;
public TLAbsInputUser id { get; set; }
public bool Response { get; set; }
public void ComputeFlags()
{
get
{
return 858475004;
}
}
public TLAbsInputUser id {get;set;}
public bool Response{ get; set;}
public void ComputeFlags()
{
}
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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(id, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(-1902823612)]
[TLObject(-1902823612)]
public class TLRequestDeleteContact : TLMethod
{
public override int Constructor
public override int Constructor => -1902823612;
public TLAbsInputUser id { get; set; }
public TLLink Response { get; set; }
public void ComputeFlags()
{
get
{
return -1902823612;
}
}
public TLAbsInputUser id {get;set;}
public Contacts.TLLink Response{ get; set;}
public void ComputeFlags()
{
}
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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(id, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Contacts.TLLink)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLLink) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(1504393374)]
[TLObject(1504393374)]
public class TLRequestDeleteContacts : TLMethod
{
public override int Constructor
public override int Constructor => 1504393374;
public TLVector<TLAbsInputUser> id { get; set; }
public bool Response { get; set; }
public void ComputeFlags()
{
get
{
return 1504393374;
}
}
public TLVector<TLAbsInputUser> id {get;set;}
public bool Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
id = (TLVector<TLAbsInputUser>)ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
id = ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(id,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(id, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
}
}
}

View file

@ -1,45 +1,31 @@
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.Contacts
{
[TLObject(-2065352905)]
[TLObject(-2065352905)]
public class TLRequestExportCard : TLMethod
{
public override int Constructor
public override int Constructor => -2065352905;
public TLVector<int> Response { get; set; }
public void ComputeFlags()
{
get
{
return -2065352905;
}
}
public TLVector<int> Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = ObjectUtils.DeserializeVector<int>(br);
}
}
}
}

View file

@ -1,51 +1,37 @@
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.Contacts
{
[TLObject(-176409329)]
[TLObject(-176409329)]
public class TLRequestGetBlocked : TLMethod
{
public override int Constructor
public override int Constructor => -176409329;
public int offset { get; set; }
public int limit { get; set; }
public TLAbsBlocked Response { get; set; }
public void ComputeFlags()
{
get
{
return -176409329;
}
}
public int offset {get;set;}
public int limit {get;set;}
public Contacts.TLAbsBlocked Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
offset = br.ReadInt32();
limit = br.ReadInt32();
limit = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
bw.Write(offset);
bw.Write(limit);
bw.Write(limit);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Contacts.TLAbsBlocked)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsBlocked) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(583445000)]
[TLObject(583445000)]
public class TLRequestGetContacts : TLMethod
{
public override int Constructor
public override int Constructor => 583445000;
public string hash { get; set; }
public TLAbsContacts Response { get; set; }
public void ComputeFlags()
{
get
{
return 583445000;
}
}
public string hash {get;set;}
public Contacts.TLAbsContacts Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
hash = StringUtil.Deserialize(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
StringUtil.Serialize(hash,bw);
bw.Write(Constructor);
StringUtil.Serialize(hash, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Contacts.TLAbsContacts)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsContacts) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,45 +1,31 @@
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.Contacts
{
[TLObject(-995929106)]
[TLObject(-995929106)]
public class TLRequestGetStatuses : TLMethod
{
public override int Constructor
public override int Constructor => -995929106;
public TLVector<TLContactStatus> Response { get; set; }
public void ComputeFlags()
{
get
{
return -995929106;
}
}
public TLVector<TLContactStatus> Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLVector<TLContactStatus>)ObjectUtils.DeserializeVector<TLContactStatus>(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = ObjectUtils.DeserializeVector<TLContactStatus>(br);
}
}
}
}

View file

@ -1,79 +1,62 @@
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.Contacts
{
[TLObject(-728224331)]
[TLObject(-728224331)]
public class TLRequestGetTopPeers : TLMethod
{
public override int Constructor
public override int Constructor => -728224331;
public int flags { get; set; }
public bool correspondents { get; set; }
public bool bots_pm { get; set; }
public bool bots_inline { 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 TLAbsTopPeers Response { get; set; }
public void ComputeFlags()
{
get
{
return -728224331;
}
flags = 0;
flags = correspondents ? flags | 1 : flags & ~1;
flags = bots_pm ? flags | 2 : flags & ~2;
flags = bots_inline ? flags | 4 : flags & ~4;
flags = groups ? flags | 1024 : flags & ~1024;
flags = channels ? flags | 32768 : flags & ~32768;
}
public int flags {get;set;}
public bool correspondents {get;set;}
public bool bots_pm {get;set;}
public bool bots_inline {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 = 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;
groups = (flags & 1024) != 0;
channels = (flags & 32768) != 0;
offset = br.ReadInt32();
limit = br.ReadInt32();
hash = br.ReadInt32();
correspondents = (flags & 1) != 0;
bots_pm = (flags & 2) != 0;
bots_inline = (flags & 4) != 0;
groups = (flags & 1024) != 0;
channels = (flags & 32768) != 0;
offset = br.ReadInt32();
limit = br.ReadInt32();
hash = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
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)
{
Response = (Contacts.TLAbsTopPeers)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsTopPeers) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(1340184318)]
[TLObject(1340184318)]
public class TLRequestImportCard : TLMethod
{
public override int Constructor
public override int Constructor => 1340184318;
public TLVector<int> export_card { get; set; }
public TLAbsUser Response { get; set; }
public void ComputeFlags()
{
get
{
return 1340184318;
}
}
public TLVector<int> export_card {get;set;}
public TLAbsUser Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
export_card = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
export_card = ObjectUtils.DeserializeVector<int>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(export_card,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(export_card, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsUser) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,51 +1,37 @@
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.Contacts
{
[TLObject(-634342611)]
[TLObject(-634342611)]
public class TLRequestImportContacts : TLMethod
{
public override int Constructor
public override int Constructor => -634342611;
public TLVector<TLInputPhoneContact> contacts { get; set; }
public bool replace { get; set; }
public TLImportedContacts Response { get; set; }
public void ComputeFlags()
{
get
{
return -634342611;
}
}
public TLVector<TLInputPhoneContact> contacts {get;set;}
public bool replace {get;set;}
public Contacts.TLImportedContacts Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
contacts = (TLVector<TLInputPhoneContact>)ObjectUtils.DeserializeVector<TLInputPhoneContact>(br);
replace = BoolUtil.Deserialize(br);
contacts = 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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(contacts, bw);
BoolUtil.Serialize(replace, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Contacts.TLImportedContacts)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLImportedContacts) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,51 +1,37 @@
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.Contacts
{
[TLObject(451113900)]
[TLObject(451113900)]
public class TLRequestResetTopPeerRating : TLMethod
{
public override int Constructor
public override int Constructor => 451113900;
public TLAbsTopPeerCategory category { get; set; }
public TLAbsInputPeer peer { get; set; }
public bool Response { get; set; }
public void ComputeFlags()
{
get
{
return 451113900;
}
}
public TLAbsTopPeerCategory category {get;set;}
public TLAbsInputPeer peer {get;set;}
public bool Response{ get; set;}
public void ComputeFlags()
{
}
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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(category, bw);
ObjectUtils.SerializeObject(peer, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(-113456221)]
[TLObject(-113456221)]
public class TLRequestResolveUsername : TLMethod
{
public override int Constructor
public override int Constructor => -113456221;
public string username { get; set; }
public TLResolvedPeer Response { get; set; }
public void ComputeFlags()
{
get
{
return -113456221;
}
}
public string username {get;set;}
public Contacts.TLResolvedPeer Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
username = StringUtil.Deserialize(br);
}
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 = (Contacts.TLResolvedPeer)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLResolvedPeer) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,51 +1,37 @@
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.Contacts
{
[TLObject(301470424)]
[TLObject(301470424)]
public class TLRequestSearch : TLMethod
{
public override int Constructor
public override int Constructor => 301470424;
public string q { get; set; }
public int limit { get; set; }
public TLFound Response { get; set; }
public void ComputeFlags()
{
get
{
return 301470424;
}
}
public string q {get;set;}
public int limit {get;set;}
public Contacts.TLFound Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
q = StringUtil.Deserialize(br);
limit = br.ReadInt32();
limit = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
StringUtil.Serialize(q,bw);
bw.Write(limit);
bw.Write(Constructor);
StringUtil.Serialize(q, bw);
bw.Write(limit);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Contacts.TLFound)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLFound) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(-448724803)]
[TLObject(-448724803)]
public class TLRequestUnblock : TLMethod
{
public override int Constructor
public override int Constructor => -448724803;
public TLAbsInputUser id { get; set; }
public bool Response { get; set; }
public void ComputeFlags()
{
get
{
return -448724803;
}
}
public TLAbsInputUser id {get;set;}
public bool Response{ get; set;}
public void ComputeFlags()
{
}
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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(id, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(2131196633)]
[TLObject(2131196633)]
public class TLResolvedPeer : TLObject
{
public override int Constructor
public override int Constructor => 2131196633;
public TLAbsPeer peer { get; set; }
public TLVector<TLAbsChat> chats { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return 2131196633;
}
}
public TLAbsPeer peer {get;set;}
public TLVector<TLAbsChat> chats {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
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 = ObjectUtils.DeserializeVector<TLAbsChat>(br);
users = 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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(peer, bw);
ObjectUtils.SerializeObject(chats, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Contacts
{
[TLObject(1891070632)]
[TLObject(1891070632)]
public class TLTopPeers : TLAbsTopPeers
{
public override int Constructor
public override int Constructor => 1891070632;
public TLVector<TLTopPeerCategoryPeers> categories { get; set; }
public TLVector<TLAbsChat> chats { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return 1891070632;
}
}
public TLVector<TLTopPeerCategoryPeers> categories {get;set;}
public TLVector<TLAbsChat> chats {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
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 = ObjectUtils.DeserializeVector<TLTopPeerCategoryPeers>(br);
chats = ObjectUtils.DeserializeVector<TLAbsChat>(br);
users = 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);
bw.Write(Constructor);
ObjectUtils.SerializeObject(categories, bw);
ObjectUtils.SerializeObject(chats, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,39 +1,24 @@
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.Contacts
{
[TLObject(-567906571)]
[TLObject(-567906571)]
public class TLTopPeersNotModified : TLAbsTopPeers
{
public override int Constructor
public override int Constructor => -567906571;
public void ComputeFlags()
{
get
{
return -567906571;
}
}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
}
}
}
}