mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Rename TeleSharp.TL->TgSharp.TL, fixing base types (4/5)
These types are not auto-generated so they needed to be fixed manually.
This commit is contained in:
parent
2c0352e38d
commit
350d28c7f8
|
|
@ -5,8 +5,7 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using TeleSharp.TL;
|
namespace TgSharp.TL
|
||||||
namespace TeleSharp.TL
|
|
||||||
{
|
{
|
||||||
public class ObjectUtils
|
public class ObjectUtils
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@ using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using TeleSharp.TL;
|
namespace TgSharp.TL
|
||||||
namespace TeleSharp.TL
|
|
||||||
{
|
{
|
||||||
public static class TLContext
|
public static class TLContext
|
||||||
{
|
{
|
||||||
|
|
@ -16,7 +15,7 @@ namespace TeleSharp.TL
|
||||||
{
|
{
|
||||||
Types = new Dictionary<int, Type>();
|
Types = new Dictionary<int, Type>();
|
||||||
Types = (from t in Assembly.GetExecutingAssembly().GetTypes()
|
Types = (from t in Assembly.GetExecutingAssembly().GetTypes()
|
||||||
where t.IsClass && t.Namespace.StartsWith("TeleSharp.TL")
|
where t.IsClass && t.Namespace.StartsWith(typeof(TLContext).Namespace)
|
||||||
where t.IsSubclassOf(typeof(TLObject))
|
where t.IsSubclassOf(typeof(TLObject))
|
||||||
where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null
|
where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null
|
||||||
select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x);
|
select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x);
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using TeleSharp.TL;
|
namespace TgSharp.TL
|
||||||
namespace TeleSharp.TL
|
|
||||||
{
|
{
|
||||||
public abstract class TLMethod : TLObject
|
public abstract class TLMethod : TLObject
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using TeleSharp.TL;
|
namespace TgSharp.TL
|
||||||
namespace TeleSharp.TL
|
|
||||||
{
|
{
|
||||||
public class TLObjectAttribute : Attribute
|
public class TLObjectAttribute : Attribute
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using TeleSharp.TL;
|
namespace TgSharp.TL
|
||||||
namespace TeleSharp.TL
|
|
||||||
{
|
{
|
||||||
public class IntegerUtil
|
public class IntegerUtil
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace TeleSharp.TL
|
namespace TgSharp.TL
|
||||||
{
|
{
|
||||||
public class TLVector<T> : TLObject, IList<T>
|
public class TLVector<T> : TLObject, IList<T>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue