-
Notifications
You must be signed in to change notification settings - Fork 1
/
IStore.cs
17 lines (16 loc) · 1011 Bytes
/
IStore.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace PlanningPoker.Server;
public interface IStore {
Task AddPointAsync(string sessionId, string point);
Task CreateParticipantAsync(string sessionId, string participantId, string name);
Task<string> CreateSessionAsync(string title, IEnumerable<string> points);
Task DeleteParticipantAsync(string sessionId, string participantId);
Task<bool> ExistsSessionAsync(string sessionId);
Task<Session?> GetSessionAsync(string sessionId);
Task IncrementParticipantStarsAsync(string sessionId, string participantId, int count = 1);
Task RemovePointAsync(string sessionId, string point);
Task UpdateAllParticipantPointsAsync(string sessionId, string points = "");
Task UpdateParticipantNameAsync(string sessionId, string participantId, string name);
Task UpdateParticipantPointsAsync(string sessionId, string participantId, string points);
Task UpdateSessionStateAsync(string sessionId, State state);
Task UpdateSessionTitleAsync(string sessionId, string title);
}