mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use JSON for resume file instead of XML.
This commit is contained in:
@@ -38,11 +38,18 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
using Schemas;
|
using Schemas;
|
||||||
|
|
||||||
namespace Aaru.CommonTypes.Metadata;
|
namespace Aaru.CommonTypes.Metadata;
|
||||||
|
|
||||||
|
public class ResumeJson
|
||||||
|
{
|
||||||
|
[JsonPropertyName("AaruResume")]
|
||||||
|
public Resume Resume { get; init; }
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Information that allows to resume a dump</summary>
|
/// <summary>Information that allows to resume a dump</summary>
|
||||||
[Serializable, XmlRoot("DicResume", Namespace = "", IsNullable = false)]
|
[Serializable, XmlRoot("DicResume", Namespace = "", IsNullable = false)]
|
||||||
public class Resume
|
public class Resume
|
||||||
|
|||||||
Reference in New Issue
Block a user