UIIF definition

This commit is contained in:
DismissedLight
2023-09-11 23:09:49 +08:00
committed by Lightczx
parent 1c7b926d76
commit dbc81f0a93
4 changed files with 34 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
namespace Snap.Hutao.Model.InterChange.Inventory; namespace Snap.Hutao.Model.InterChange.Inventory;
internal sealed class UIIFMaterial internal sealed class UIIFCountInfo
{ {
public uint Count { get; set; } public uint Count { get; set; }
} }

View File

@@ -0,0 +1,23 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
using Snap.Hutao.Web.Enka.Model;
namespace Snap.Hutao.Model.InterChange.Inventory;
internal class UIIFEquip
{
/// <summary>
/// 圣遗物
/// Artifact Base Info
/// </summary>
[JsonPropertyName("reliquary")]
public Reliquary? Reliquary { get; set; }
/// <summary>
/// 武器
/// Weapon Base Info
/// </summary>
[JsonPropertyName("weapon")]
public Weapon? Weapon { get; set; }
}

View File

@@ -16,5 +16,11 @@ internal sealed class UIIFItem
public uint ItemId { get; set; } public uint ItemId { get; set; }
[JsonPropertyName("material")] [JsonPropertyName("material")]
public UIIFMaterial Material { get; set; } = default!; public UIIFCountInfo? Material { get; set; } = default!;
[JsonPropertyName("furniture")]
public UIIFCountInfo? Furniture { get; set; } = default!;
[JsonPropertyName("equip")]
public UIIFEquip? Equip { get; set; } = default!;
} }

View File

@@ -1,13 +1,15 @@
// Copyright (c) DGP Studio. All rights reserved. // Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license. // Licensed under the MIT license.
using Snap.Hutao.Model.InterChange.Inventory;
namespace Snap.Hutao.Web.Enka.Model; namespace Snap.Hutao.Web.Enka.Model;
/// <summary> /// <summary>
/// 装备 /// 装备
/// </summary> /// </summary>
[HighQuality] [HighQuality]
internal sealed class Equip internal sealed class Equip : UIIFEquip
{ {
/// <summary> /// <summary>
/// 物品Id /// 物品Id
@@ -16,20 +18,6 @@ internal sealed class Equip
[JsonPropertyName("itemId")] [JsonPropertyName("itemId")]
public uint ItemId { get; set; } public uint ItemId { get; set; }
/// <summary>
/// 圣遗物
/// Artifact Base Info
/// </summary>
[JsonPropertyName("reliquary")]
public Reliquary? Reliquary { get; set; }
/// <summary>
/// 武器
/// Weapon Base Info
/// </summary>
[JsonPropertyName("weapon")]
public Weapon? Weapon { get; set; }
/// <summary> /// <summary>
/// Detailed Info of Equipment /// Detailed Info of Equipment
/// </summary> /// </summary>