renamed ITLObject to IObject

This commit is contained in:
Wizou 2021-11-07 16:52:58 +01:00
parent fd9ec2eaed
commit dbcb6814ff
8 changed files with 801 additions and 801 deletions

View file

@ -19,7 +19,7 @@ namespace WTelegramClientTest
client.Update += Client_Update;
Console.ReadKey();
async void Client_Update(ITLObject arg)
async void Client_Update(IObject arg)
{
if (arg is not Updates { updates: var updates }) return;
foreach (var update in updates)

View file

@ -43,7 +43,7 @@ namespace WTelegramClientTest
private static string APeer(Peer peer) => peer is null ? null : peer is PeerUser user ? AUser(user.user_id)
: peer is PeerChat chat ? AChat(chat.chat_id) : peer is PeerChannel channel ? AChat(channel.channel_id) : $"Peer {peer.ID}";
private static void Client_Update(ITLObject arg)
private static void Client_Update(IObject arg)
{
switch (arg)
{