Add AACS extension

This commit is contained in:
Matt Nadareski
2025-09-26 14:27:49 -04:00
parent c82d865cd5
commit 775bab6656

View File

@@ -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