-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathIHubClient.cs
More file actions
32 lines (26 loc) · 1.06 KB
/
IHubClient.cs
File metadata and controls
32 lines (26 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Threading.Tasks;
using MangoAPI.BusinessLogic.Notifications;
namespace MangoAPI.BusinessLogic.HubConfig;
public interface IHubClient
{
/// <summary>
/// Notifies chat subscribers on the message sent via SignalR.
/// </summary>
Task MessageSentAsync(SendMessageNotification notification);
/// <summary>
/// Pushes new created private chat to the receiver's chats list via SignalR.
/// </summary>
Task PrivateChatCreatedAsync(PrivateChatCreatedNotification notification);
/// <summary>
/// Removes deleted private chat from the receiver's chats list via SignalR.
/// </summary>
Task PrivateChatDeletedAsync(PrivateChatDeletedNotification notification);
/// <summary>
/// Notifies chat subscribers on the message delete via SignalR.
/// </summary>
Task MessageDeletedAsync(DeleteMessageNotification notification);
/// <summary>
/// Notifies chat subscribers on the typing event via SignalR.
/// </summary>
Task PrivateChatSentTypingEventAsync(TypingEventNotification notification);
}