Inventory enhancements
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
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
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user