diff --git a/XMID.cs b/XMID.cs new file mode 100644 index 0000000..807a092 --- /dev/null +++ b/XMID.cs @@ -0,0 +1,23 @@ +using System.Text; +using static SabreTools.Models.Xbox.Constants; + +namespace SabreTools.Printing +{ + public static class XMID + { + public static void Print(StringBuilder builder, Models.Xbox.XMID xmid) + { + builder.AppendLine("Xbox Media Identifier Information:"); + builder.AppendLine("-------------------------"); + builder.AppendLine(xmid.PublisherIdentifier, "Publisher identifier"); + if (!string.IsNullOrWhiteSpace(xmid.PublisherIdentifier) && Publishers.ContainsKey(xmid.PublisherIdentifier)) + builder.AppendLine(Publishers[xmid.PublisherIdentifier], "Publisher"); + builder.AppendLine(xmid.GameID, "Game ID"); + builder.AppendLine(xmid.VersionNumber, "Version number"); + builder.AppendLine(xmid.RegionIdentifier, "Region identifier"); + if (Regions.ContainsKey(xmid.RegionIdentifier)) + builder.AppendLine(Regions[xmid.RegionIdentifier], "Region"); + builder.AppendLine(); + } + } +} \ No newline at end of file diff --git a/XeMID.cs b/XeMID.cs new file mode 100644 index 0000000..6b208ff --- /dev/null +++ b/XeMID.cs @@ -0,0 +1,30 @@ +using System.Text; +using static SabreTools.Models.Xbox.Constants; + +namespace SabreTools.Printing +{ + public static class XeMID + { + public static void Print(StringBuilder builder, Models.Xbox.XeMID xemid) + { + builder.AppendLine("Xbox Media Identifier Information:"); + builder.AppendLine("-------------------------"); + builder.AppendLine(xemid.PublisherIdentifier, "Publisher identifier"); + if (!string.IsNullOrWhiteSpace(xemid.PublisherIdentifier) && Publishers.ContainsKey(xemid.PublisherIdentifier)) + builder.AppendLine(Publishers[xemid.PublisherIdentifier], "Publisher"); + builder.AppendLine(xemid.PlatformIdentifier, "Platform identifier"); + builder.AppendLine(xemid.GameID, "Game ID"); + builder.AppendLine(xemid.SKU, "SKU"); + builder.AppendLine(xemid.RegionIdentifier, "Region identifier"); + if (Regions.ContainsKey(xemid.RegionIdentifier)) + builder.AppendLine(Regions[xemid.RegionIdentifier], "Region"); + builder.AppendLine(xemid.BaseVersion, "Base version"); + builder.AppendLine(xemid.MediaSubtypeIdentifier, "Media subtype identifier"); + if (MediaSubtypes.ContainsKey(xemid.MediaSubtypeIdentifier)) + builder.AppendLine(MediaSubtypes[xemid.MediaSubtypeIdentifier], "Media subtype"); + builder.AppendLine(xemid.DiscNumberIdentifier, "Disc number identifier"); + builder.AppendLine(xemid.CertificationSubmissionIdentifier, "Certification submission identifier"); + builder.AppendLine(); + } + } +} \ No newline at end of file