change Dictionary of UserBase into Dictionary of User

This commit is contained in:
Wizou 2021-12-25 03:20:22 +01:00
parent 2881155f8b
commit 51a89bc6a1
6 changed files with 131 additions and 122 deletions

View file

@ -35,7 +35,7 @@ namespace WTelegramClientTest
}
private static readonly Dictionary<long, UserBase> _users = new();
private static readonly Dictionary<long, User> _users = new();
private static readonly Dictionary<long, ChatBase> _chats = new();
private static string User(long id) => _users.TryGetValue(id, out var user) ? user.ToString() : $"User {id}";
private static string Chat(long id) => _chats.TryGetValue(id, out var chat) ? chat.ToString() : $"Chat {id}";