17 lines
521 B
C#
17 lines
521 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace NahidaImpact.Common.Data.Binout.Ability;
|
|
public class AbilityData
|
|
{
|
|
[JsonPropertyName("abilityID")]
|
|
public required string AbilityId { get; set; }
|
|
|
|
[JsonPropertyName("abilityName")]
|
|
public required string AbilityName { get; set; }
|
|
|
|
[JsonPropertyName("abilityOverride")]
|
|
public required string AbilityOverride { get; set; }
|
|
|
|
public string GetAbilityOverride()
|
|
=> string.IsNullOrEmpty(AbilityOverride) ? "Default" : AbilityOverride;
|
|
}
|