From 63100b086f3a7f85cb2f98b69ed77b2eb4741faa Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 22 Jun 2026 00:03:37 -0400 Subject: [PATCH] Start sectioning out code better --- SabreTools.RedumpLib/Data/SubmissionInfo.cs | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/SabreTools.RedumpLib/Data/SubmissionInfo.cs b/SabreTools.RedumpLib/Data/SubmissionInfo.cs index ab5ceb7..bda29a5 100644 --- a/SabreTools.RedumpLib/Data/SubmissionInfo.cs +++ b/SabreTools.RedumpLib/Data/SubmissionInfo.cs @@ -61,12 +61,18 @@ namespace SabreTools.RedumpLib.Data /// - Submit As [submit_as] public class SubmissionInfo : ICloneable { + #region Model Information + /// /// Version of the current schema /// [JsonProperty(PropertyName = "schema_version", DefaultValueHandling = DefaultValueHandling.Ignore)] public int SchemaVersion { get; set; } = 1; + #endregion + + #region Matching Information + /// /// List of fully-matched Redump IDs /// @@ -101,6 +107,16 @@ namespace SabreTools.RedumpLib.Data [JsonIgnore] public DateTime? LastModified { get; set; } + #endregion + + #region Submission Form + + // TODO: To be filled out when sections are added + + #endregion + + #region Moderator Information + /// /// Dumping info section for moderation /// @@ -113,6 +129,9 @@ namespace SabreTools.RedumpLib.Data [JsonProperty(PropertyName = "artifacts", DefaultValueHandling = DefaultValueHandling.Ignore)] public Dictionary Artifacts { get; set; } = []; + #endregion + + /// public object Clone() { Dictionary artifacts = []; @@ -124,10 +143,14 @@ namespace SabreTools.RedumpLib.Data return new SubmissionInfo { SchemaVersion = this.SchemaVersion, + FullyMatchedIDs = this.FullyMatchedIDs, PartiallyMatchedIDs = this.PartiallyMatchedIDs, Added = this.Added, LastModified = this.LastModified, + + // TODO: Add cloning for all submission form sections + DumpingInfo = this.DumpingInfo?.Clone() as DumpingInfoSection ?? new DumpingInfoSection(), Artifacts = artifacts, };