OnlineSalesAutoCrop/Api/OnlineSalesAutoCrop.CoreAPI/SignalRHub/INotificationHub.cs

22 lines
675 B
C#
Raw Normal View History

2026-06-14 12:46:29 +06:00
using System.Threading.Tasks;
namespace OnlineSalesAutoCrop.CoreAPI.SignalRHub
{
/// <summary>
///
/// </summary>
public interface INotificationHub
{
/// <summary>
///
/// </summary>
/// <param name="userId">User id to notify.</param>
/// <param name="msgType">1: Force to logout all, 2: Same user is logged in from another device,
/// 3: Subtask Start/Stop/Completed, 4: Subtask's remarks added</param>
/// <param name="itemId">Another parameter.</param>
/// <param name="ipAddress">Ip address from which the user is logged in.</param>
/// <returns></returns>
Task NotifySubscriber(int userId, int msgType, int itemId, string ipAddress);
}
}