mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-27 16:49:56 +00:00
30 lines
922 B
C#
30 lines
922 B
C#
using System.Text;
|
|
using SabreTools.Serialization.Interfaces;
|
|
|
|
namespace SabreTools.Serialization.Strings
|
|
{
|
|
public partial class XeMID : IStringSerializer<Models.Xbox.XeMID>
|
|
{
|
|
/// <inheritdoc/>
|
|
public string? Serialize(Models.Xbox.XeMID? obj)
|
|
{
|
|
if (obj == null)
|
|
return null;
|
|
|
|
var sb = new StringBuilder();
|
|
|
|
sb.Append(obj.PublisherIdentifier);
|
|
sb.Append(obj.PlatformIdentifier);
|
|
sb.Append(obj.GameID);
|
|
sb.Append(obj.SKU);
|
|
sb.Append(obj.RegionIdentifier);
|
|
sb.Append(obj.BaseVersion);
|
|
sb.Append(obj.MediaSubtypeIdentifier);
|
|
sb.Append(obj.DiscNumberIdentifier);
|
|
if (!string.IsNullOrEmpty(obj.CertificationSubmissionIdentifier))
|
|
sb.Append(obj.CertificationSubmissionIdentifier);
|
|
|
|
return sb.ToString();
|
|
}
|
|
}
|
|
} |