mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Convert remaining items, add NameKey
This commit is contained in:
@@ -8,7 +8,7 @@ namespace SabreTools.DatItems.Formats
|
||||
/// Represents generic archive files to be included in a set
|
||||
/// </summary>
|
||||
[JsonObject("archive"), XmlRoot("archive")]
|
||||
public class Archive : DatItem
|
||||
public sealed class Archive : DatItem
|
||||
{
|
||||
#region Fields
|
||||
|
||||
@@ -79,16 +79,6 @@ namespace SabreTools.DatItems.Formats
|
||||
|
||||
#endregion
|
||||
|
||||
#region Accessors
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? GetName() => GetFieldValue<string>(Models.Metadata.Archive.NameKey);
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void SetName(string? name) => SetFieldValue(Models.Metadata.Archive.NameKey, name);
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
@@ -116,6 +106,16 @@ namespace SabreTools.DatItems.Formats
|
||||
|
||||
#endregion
|
||||
|
||||
#region Accessors
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? GetName() => GetFieldValue<string>(Models.Metadata.Archive.NameKey);
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void SetName(string? name) => SetFieldValue(Models.Metadata.Archive.NameKey, name);
|
||||
|
||||
#endregion
|
||||
|
||||
#region Cloning Methods
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user