mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add Logiqx machine serialization
This commit is contained in:
@@ -228,6 +228,7 @@ namespace SabreTools.Models.Internal
|
||||
/// <remarks>string</remarks>
|
||||
public const string TagsKey = "tags";
|
||||
|
||||
/// TODO: This needs an internal model OR mapping to fields
|
||||
/// <remarks>Trurip</remarks>
|
||||
public const string TruripKey = "trurip";
|
||||
|
||||
@@ -289,6 +290,18 @@ namespace SabreTools.Models.Internal
|
||||
return this[key] as string;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Read a key as a string[], returning null on error
|
||||
/// </summary>
|
||||
public string[]? ReadStringArray(string key)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(key))
|
||||
return null;
|
||||
if (!ContainsKey(key))
|
||||
return null;
|
||||
return this[key] as string[];
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user