mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
Add AACS extension
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using SabreTools.Data.Models.AACS;
|
||||
|
||||
@@ -19,6 +20,21 @@ namespace SabreTools.Serialization.Wrappers
|
||||
/// </summary>
|
||||
public Record[] Records => Model.Records ?? [];
|
||||
|
||||
/// <summary>
|
||||
/// Reported version of the media key block
|
||||
/// </summary>
|
||||
public string? Version
|
||||
{
|
||||
get
|
||||
{
|
||||
var record = Array.Find(Records, r => r.RecordType == RecordType.TypeAndVersion);
|
||||
if (record is TypeAndVersionRecord tavr)
|
||||
return tavr.VersionNumber.ToString();
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
Reference in New Issue
Block a user