2020-12-05 21:47:12 +01:00
|
|
|
|
using SessionCompanion.Database.Tables;
|
2021-01-20 19:56:51 +01:00
|
|
|
|
using SessionCompanion.Extensions.EitherType;
|
2020-12-05 21:47:12 +01:00
|
|
|
|
using SessionCompanion.Services.Base;
|
2021-01-20 19:56:51 +01:00
|
|
|
|
using SessionCompanion.ViewModels.ApiResponses;
|
2021-01-20 18:55:11 +01:00
|
|
|
|
using SessionCompanion.ViewModels.ShopkeeperViewModels;
|
2020-12-05 21:47:12 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2021-01-20 18:55:11 +01:00
|
|
|
|
using System.Linq;
|
2020-12-05 21:47:12 +01:00
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SessionCompanion.Services.Interfaces
|
|
|
|
|
{
|
2021-01-20 18:55:11 +01:00
|
|
|
|
public interface IShopkeeperService : IServiceBase<ShopkeeperViewModel, Shopkeeper>
|
2020-12-05 21:47:12 +01:00
|
|
|
|
{
|
2021-01-20 20:54:19 +01:00
|
|
|
|
Task<Either<SuccessResponse, ErrorResponse>> CreateNewShopKeeper(ShopkeeperWithItemsViewModel shopkeeperWithItemsViewModel);
|
2021-01-20 19:56:51 +01:00
|
|
|
|
Task<Either<SuccessResponse, ErrorResponse>> ChangeShopkeeperStatus(int shopkeeperId, bool availability);
|
2021-01-22 08:00:03 +01:00
|
|
|
|
Task<Either<ShopkeeperWithItemsDetailsViewModel, ErrorResponse>> GetActiveShkopkeeperWithItems();
|
2020-12-05 21:47:12 +01:00
|
|
|
|
}
|
|
|
|
|
}
|