20 lines
536 B
C#
20 lines
536 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameModel.Contracts
|
|
{
|
|
public interface IGameRepository
|
|
{
|
|
Task<Game> Create(Game game);
|
|
Task<Game> Create(string gameName);
|
|
Task<IEnumerable<GameState>> LoadStates(Guid gameId);
|
|
Task<Game> LoadGame(Guid gameId);
|
|
Task<GameState> Save(GameState gameState);
|
|
Task Update(Game game);
|
|
Task Delete(IEnumerable<GameState> gameStates);
|
|
}
|
|
}
|