From fc08140995be672be88830c3de7a3a97806a8b81 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:57:47 +0200 Subject: [PATCH] renaming 2 files --- src/{TL.Extensions.cs => Services.cs} | 10 +++++----- src/{TL.Helpers.cs => TL.Xtended.cs} | 0 src/UpdateManager.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/{TL.Extensions.cs => Services.cs} (97%) rename src/{TL.Helpers.cs => TL.Xtended.cs} (100%) diff --git a/src/TL.Extensions.cs b/src/Services.cs similarity index 97% rename from src/TL.Extensions.cs rename to src/Services.cs index 7a51640..0be43f1 100644 --- a/src/TL.Extensions.cs +++ b/src/Services.cs @@ -9,7 +9,7 @@ namespace TL { - public static class Extensions + public static class Services { public sealed partial class CollectorPeer(IDictionary _users, IDictionary _chats) : Peer, IPeerCollector { @@ -104,13 +104,13 @@ public void Collect(IEnumerable chats) public static void CollectUsersChats(this IPeerResolver structure, IDictionary users, IDictionary chats) => structure.UserOrChat(new CollectorPeer(users, chats)); - [EditorBrowsable(EditorBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)][Obsolete("The method you're looking for is Messages_GetAllChats", true)] public static Task Messages_GetChats(this Client _) => throw new WTException("The method you're looking for is Messages_GetAllChats"); - [EditorBrowsable(EditorBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)][Obsolete("The method you're looking for is Messages_GetAllChats", true)] public static Task Channels_GetChannels(this Client _) => throw new WTException("The method you're looking for is Messages_GetAllChats"); - [EditorBrowsable(EditorBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)][Obsolete("The method you're looking for is Messages_GetAllDialogs", true)] public static Task Users_GetUsers(this Client _) => throw new WTException("The method you're looking for is Messages_GetAllDialogs"); - [EditorBrowsable(EditorBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)][Obsolete("If you want to get all messages from a chat, use method Messages_GetHistory", true)] public static Task Messages_GetMessages(this Client _) => throw new WTException("If you want to get all messages from a chat, use method Messages_GetHistory"); } diff --git a/src/TL.Helpers.cs b/src/TL.Xtended.cs similarity index 100% rename from src/TL.Helpers.cs rename to src/TL.Xtended.cs diff --git a/src/UpdateManager.cs b/src/UpdateManager.cs index 615f8ae..99d9886 100644 --- a/src/UpdateManager.cs +++ b/src/UpdateManager.cs @@ -56,7 +56,7 @@ public UpdateManager(Client client, Func onUpdate, IDictionary