mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
rework console client
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.SignalR.Client;
|
||||
|
||||
namespace Govor.ConsoleClient.Commands
|
||||
{
|
||||
@@ -25,7 +26,7 @@ namespace Govor.ConsoleClient.Commands
|
||||
{
|
||||
// API uses Hub for this: RejectFriendRequest(Guid friendshipId)
|
||||
// Located in Govor.API/Hubs/FriendsHub.cs
|
||||
await HubConnection.InvokeAsync("RejectFriendRequest", friendshipId);
|
||||
await HubConnection.InvokeAsync("RejectRequest", friendshipId);
|
||||
Console.WriteLine("Заявка в друзья отклонена.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user