SES-153 Endpoint tworzący sklepikarza #81
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user