mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-07 15:36:23 +00:00
Redesign Everything
This commit is contained in:
parent
b5472c6cd7
commit
6af7c66a81
710 changed files with 32932 additions and 302 deletions
13
TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs
Normal file
13
TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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
|
||||
{
|
||||
}
|
||||
}
|
||||
13
TeleSharp.TL/TL/Contacts/TLAbsContacts.cs
Normal file
13
TeleSharp.TL/TL/Contacts/TLAbsContacts.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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
|
||||
{
|
||||
}
|
||||
}
|
||||
13
TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs
Normal file
13
TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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
|
||||
{
|
||||
}
|
||||
}
|
||||
45
TeleSharp.TL/TL/Contacts/TLBlocked.cs
Normal file
45
TeleSharp.TL/TL/Contacts/TLBlocked.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.Contacts
|
||||
{
|
||||
[TLObject(471043349)]
|
||||
public class TLBlocked : TLAbsBlocked
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(blocked,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLBlockedSlice : TLAbsBlocked
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(blocked,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
45
TeleSharp.TL/TL/Contacts/TLContacts.cs
Normal file
45
TeleSharp.TL/TL/Contacts/TLContacts.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.Contacts
|
||||
{
|
||||
[TLObject(1871416498)]
|
||||
public class TLContacts : TLAbsContacts
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(contacts,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
39
TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs
Normal file
39
TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
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)]
|
||||
public class TLContactsNotModified : TLAbsContacts
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1219778094;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLFound.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLFound.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLFound : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(results,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLImportedContacts.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLImportedContacts.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLImportedContacts : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(imported,bw);
|
||||
ObjectUtils.SerializeObject(retry_contacts,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLLink.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLLink.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLLink : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(my_link,bw);
|
||||
ObjectUtils.SerializeObject(foreign_link,bw);
|
||||
ObjectUtils.SerializeObject(user,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLRequestBlock.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLRequestBlock.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLRequestBlock : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLRequestDeleteContact : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLLink)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLRequestDeleteContacts : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
45
TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs
Normal file
45
TeleSharp.TL/TL/Contacts/TLRequestExportCard.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.Contacts
|
||||
{
|
||||
[TLObject(-2065352905)]
|
||||
public class TLRequestExportCard : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
51
TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs
Normal file
51
TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.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.Contacts
|
||||
{
|
||||
[TLObject(-176409329)]
|
||||
public class TLRequestGetBlocked : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(offset);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLAbsBlocked)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLRequestGetContacts : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLAbsContacts)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
45
TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs
Normal file
45
TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.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.Contacts
|
||||
{
|
||||
[TLObject(-995929106)]
|
||||
public class TLRequestGetStatuses : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLContactStatus>)ObjectUtils.DeserializeVector<TLContactStatus>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
79
TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs
Normal file
79
TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
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)]
|
||||
public class TLRequestGetTopPeers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -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 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();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bw.Write(offset);
|
||||
bw.Write(limit);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLAbsTopPeers)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLRequestImportCard : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(export_card,bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
51
TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs
Normal file
51
TeleSharp.TL/TL/Contacts/TLRequestImportContacts.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.Contacts
|
||||
{
|
||||
[TLObject(-634342611)]
|
||||
public class TLRequestImportContacts : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(contacts,bw);
|
||||
BoolUtil.Serialize(replace,bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLImportedContacts)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
51
TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs
Normal file
51
TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.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.Contacts
|
||||
{
|
||||
[TLObject(451113900)]
|
||||
public class TLRequestResetTopPeerRating : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(category,bw);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLRequestResolveUsername : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLResolvedPeer)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
51
TeleSharp.TL/TL/Contacts/TLRequestSearch.cs
Normal file
51
TeleSharp.TL/TL/Contacts/TLRequestSearch.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.Contacts
|
||||
{
|
||||
[TLObject(301470424)]
|
||||
public class TLRequestSearch : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(q,bw);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Contacts.TLFound)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLRequestUnblock : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLResolvedPeer : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Contacts/TLTopPeers.cs
Normal file
48
TeleSharp.TL/TL/Contacts/TLTopPeers.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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)]
|
||||
public class TLTopPeers : TLAbsTopPeers
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(categories,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
39
TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs
Normal file
39
TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
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)]
|
||||
public class TLTopPeersNotModified : TLAbsTopPeers
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -567906571;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue