12 lines
519 B
C#
12 lines
519 B
C#
using ZeroSpace.Model;
|
|
|
|
namespace ZeroSpace.Web.Services;
|
|
|
|
public interface IUnitsApiClient
|
|
{
|
|
Task<IReadOnlyList<UnitData>> GetUnitsAsync(string? faction = null, int? tier = null, CancellationToken cancellationToken = default);
|
|
Task<UnitData?> GetUnitByIdAsync(string id, CancellationToken cancellationToken = default);
|
|
Task<UnitData?> CreateUnitAsync(UnitData unit, CancellationToken cancellationToken = default);
|
|
Task<bool> DeleteUnitAsync(string id, CancellationToken cancellationToken = default);
|
|
}
|