Skip to content

Commit

Permalink
renaming 2 files
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz0u committed Apr 5, 2024
1 parent f3ca76b commit fc08140
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/TL.Extensions.cs → src/Services.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace TL
{
public static class Extensions
public static class Services
{
public sealed partial class CollectorPeer(IDictionary<long, User> _users, IDictionary<long, ChatBase> _chats) : Peer, IPeerCollector
{
Expand Down Expand Up @@ -104,13 +104,13 @@ public void Collect(IEnumerable<ChatBase> chats)
public static void CollectUsersChats(this IPeerResolver structure, IDictionary<long, User> users, IDictionary<long, ChatBase> 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_Chats> 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<Messages_Chats> 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<UserBase[]> 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_MessagesBase> Messages_GetMessages(this Client _) => throw new WTException("If you want to get all messages from a chat, use method Messages_GetHistory");
}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/UpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public UpdateManager(Client client, Func<Update, Task> onUpdate, IDictionary<lon
{
_client = client;
_onUpdate = onUpdate;
_collector = collector ?? new Extensions.CollectorPeer(Users = [], Chats = []);
_collector = collector ?? new Services.CollectorPeer(Users = [], Chats = []);

if (state == null)
_local = new() { [L_SEQ] = new() { access_hash = UndefinedSeqDate }, [L_QTS] = new(), [L_PTS] = new() };
Expand Down

0 comments on commit fc08140

Please sign in to comment.