Add code generation.

Replaces the client and server controller implementations with generated code from the shared project.
This commit is contained in:
2020-03-13 20:16:53 +01:00
parent 7bd44091cf
commit 42bca48742
29 changed files with 542 additions and 499 deletions

View File

@@ -2,7 +2,7 @@ using System.Threading.Tasks;
using EstusShots.Shared.Models;
using EstusShots.Shared.Models.Parameters;
namespace EstusShots.Shared.Interfaces
namespace EstusShots.Shared.Interfaces.Controllers
{
public interface IDrinksController
{

View File

@@ -2,7 +2,7 @@ using System.Threading.Tasks;
using EstusShots.Shared.Models;
using EstusShots.Shared.Models.Parameters;
namespace EstusShots.Shared.Interfaces
namespace EstusShots.Shared.Interfaces.Controllers
{
/// <summary>
/// Load and manipulate Enemy objects

View File

@@ -2,7 +2,7 @@ using System.Threading.Tasks;
using EstusShots.Shared.Models;
using EstusShots.Shared.Models.Parameters;
namespace EstusShots.Shared.Interfaces
namespace EstusShots.Shared.Interfaces.Controllers
{
/// <summary>
/// Access to episodes

View File

@@ -2,7 +2,7 @@ using System.Threading.Tasks;
using EstusShots.Shared.Models;
using EstusShots.Shared.Models.Parameters;
namespace EstusShots.Shared.Interfaces
namespace EstusShots.Shared.Interfaces.Controllers
{
/// <summary>
/// Load and manipulate player objects
@@ -33,8 +33,8 @@ namespace EstusShots.Shared.Interfaces
/// <summary>
/// Deletes a player
/// </summary>
/// <param name="parameter">An <see cref="DeletePlayerParameter"/> instance</param>
/// <returns>An ApiResponse instance of type <see cref="DeletePlayerResponse"/></returns>
Task<ApiResponse<DeletePlayerResponse>> DeletePlayers(DeletePlayerParameter parameter);
/// <param name="parameter">An <see cref="DeletePlayersParameter"/> instance</param>
/// <returns>An ApiResponse instance of type <see cref="DeletePlayersResponse"/></returns>
Task<ApiResponse<DeletePlayerResponse>> DeletePlayer(DeletePlayerParameter parameter);
}
}

View File

@@ -2,7 +2,7 @@ using System.Threading.Tasks;
using EstusShots.Shared.Models;
using EstusShots.Shared.Models.Parameters;
namespace EstusShots.Shared.Interfaces
namespace EstusShots.Shared.Interfaces.Controllers
{
/// <summary>
/// Access many seasons with one request