29 lines
937 B
C#
29 lines
937 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace gehGassi.Core.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Schnittstellenbeschreibung für einen Service der für Benutzer prüfen kann ob diese via SignalR online sind
|
|
/// </summary>
|
|
public interface IUserOnlineService
|
|
{
|
|
/// <summary>
|
|
/// Gibt zurück ob ein Benutzer via SignalR online ist
|
|
/// </summary>
|
|
/// <param name="userName">Benutzername</param>
|
|
/// <returns>True wenn online, false sonst</returns>
|
|
Task<bool> IsUserOnlineAsync(string userName);
|
|
|
|
/// <summary>
|
|
/// Gibt zurück ob ein App-User via SignalR online ist
|
|
/// </summary>
|
|
/// <param name="appUserId">Id des AppUsers</param>
|
|
/// <returns>True wenn online, false sonst</returns>
|
|
Task<bool> IsAppUserOnlineAsync(string appUserId);
|
|
}
|
|
}
|