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
|
||||
{
|
||||
@@ -24,7 +25,7 @@ namespace Govor.ConsoleClient.Commands
|
||||
try
|
||||
{
|
||||
// API uses Hub for this: AcceptFriendRequest(Guid friendshipId)
|
||||
await HubConnection.InvokeAsync("AcceptFriendRequest", friendshipId);
|
||||
await HubConnection.InvokeAsync("AcceptRequest", friendshipId);
|
||||
Console.WriteLine("Заявка в друзья принята.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user