All checks were successful
Deploy Promiscuity Auth API / deploy (push) Successful in 47s
Deploy Promiscuity Character API / deploy (push) Successful in 46s
Deploy Promiscuity Inventory API / deploy (push) Successful in 58s
Deploy Promiscuity Locations API / deploy (push) Successful in 44s
k8s smoke test / test (push) Successful in 7s
30 lines
815 B
C#
30 lines
815 B
C#
namespace InventoryApi.Models;
|
|
|
|
public class ItemDefinitionResponse
|
|
{
|
|
public string ItemKey { get; set; } = string.Empty;
|
|
|
|
public string DisplayName { get; set; } = string.Empty;
|
|
|
|
public bool Stackable { get; set; }
|
|
|
|
public int MaxStackSize { get; set; }
|
|
|
|
public string Category { get; set; } = "misc";
|
|
|
|
public string? EquipSlot { get; set; }
|
|
|
|
public DateTime UpdatedUtc { get; set; }
|
|
|
|
public static ItemDefinitionResponse FromModel(ItemDefinition definition) => new()
|
|
{
|
|
ItemKey = definition.ItemKey,
|
|
DisplayName = definition.DisplayName,
|
|
Stackable = definition.Stackable,
|
|
MaxStackSize = definition.MaxStackSize,
|
|
Category = definition.Category,
|
|
EquipSlot = definition.EquipSlot,
|
|
UpdatedUtc = definition.UpdatedUtc
|
|
};
|
|
}
|