NoKnownName 3fafc10742 Projekt
2025-05-23 10:36:56 +02:00

22 lines
723 B
C#

using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Interfaces
{
public interface ISessionService
{
Session GetSession(string sessionId);
Session CreateSession(Dictionary<string, object> sessionData);
Session UpdateSession(string sessionId, Dictionary<string, object> data);
bool DeleteSession(string sessionId);
bool AddPlayerToSession(string sessionId, string userId);
bool RemovePlayerFromSession(string sessionId, string userId);
User GetDungeonMaster(string sessionId);
bool CheckUserPermission(string sessionId, string userId, string resource);
}
}