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);
	}
}
