mirror of
https://github.com/SabreTools/SabreTools.Printing.git
synced 2026-04-23 06:33:55 +00:00
23 lines
1.0 KiB
C#
23 lines
1.0 KiB
C#
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.IsNullOrEmpty(xmid.PublisherIdentifier) && Publishers.ContainsKey(xmid.PublisherIdentifier ?? string.Empty))
|
|
builder.AppendLine(Publishers[xmid.PublisherIdentifier ?? string.Empty], "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();
|
|
}
|
|
}
|
|
} |