SES-153 Endpoint tworzący sklepikarza #81

Merged
s426134 merged 4 commits from SES-153 into dev 2021-01-21 17:36:34 +01:00
2 changed files with 32 additions and 1 deletions
Showing only changes of commit 93a6631cc3 - Show all commits

View File

@ -11,7 +11,7 @@ namespace SessionCompanion.ViewModels.ShopkeeperItemsViewModels
/// <summary> /// <summary>
/// Id Sprzedawcy /// Id Sprzedawcy
/// </summary> /// </summary>
public int ShopkeeperId { get; set; } public int? ShopkeeperId { get; set; }
/// <summary> /// <summary>
/// Id zbroi /// Id zbroi
/// </summary> /// </summary>
@ -20,5 +20,9 @@ namespace SessionCompanion.ViewModels.ShopkeeperItemsViewModels
/// Id broni /// Id broni
/// </summary> /// </summary>
public int? WeaponId { get; set; } public int? WeaponId { get; set; }
/// <summary>
/// Ilość przedmiotu
/// </summary>
public int Amount { get; set; }
} }
} }

View File

@ -0,0 +1,27 @@
using SessionCompanion.ViewModels.ShopkeeperItemsViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SessionCompanion.ViewModels.ShopkeeperViewModels
{
public class ShopkeeperWithItemsViewModel
{
public int? Id { get; set; }
/// <summary>
/// Nazwa sklepikarza
/// </summary>
public string Name { get; set; }
/// <summary>
/// Status sklepikarza
/// </summary>
public bool IsAvailable { get; set; }
/// <summary>
/// Lista przedmiotów danego sklepikarza
/// </summary>
public IEnumerable<ShopkeeperItemViewModel> Items { get; set; }
}
}