mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
13 lines
540 B
C#
13 lines
540 B
C#
namespace Govor.API.Hubs.Infrastructure;
|
|
|
|
public static class ChatHubConstants
|
|
{
|
|
public const string ReceiveMessage = "ReceiveMessage";
|
|
public const string MessageSent = "MessageSent";
|
|
public const string MessageRemoved = "MessageRemoved";
|
|
public const string MessageEdited = "MessageEdit";
|
|
|
|
public static string GetUserGroup(Guid userId) => userId.ToString();
|
|
public static string GetChatGroup(Guid groupId) => $"group_{groupId}";
|
|
public static string GetPrivateChat(Guid groupId) => $"private_{groupId}";
|
|
} |