mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add converters from CICM Metadata to Aaru Metadata.
This commit is contained in:
@@ -36,11 +36,12 @@
|
||||
// Copyright © 2011-2023 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
// ReSharper disable ClassNeverInstantiated.Global
|
||||
|
||||
using System;
|
||||
using Schemas;
|
||||
|
||||
namespace Aaru.CommonTypes.AaruMetadata;
|
||||
|
||||
public class Sequence
|
||||
@@ -50,4 +51,14 @@ public class Sequence
|
||||
public uint TotalMedia { get; set; }
|
||||
public byte? Side { get; set; }
|
||||
public byte? Layer { get; set; }
|
||||
|
||||
[Obsolete("Will be removed in Aaru 7")]
|
||||
public static implicit operator Sequence(SequenceType cicm) => cicm is null ? null : new Sequence
|
||||
{
|
||||
Title = cicm.MediaTitle,
|
||||
MediaSequence = cicm.MediaSequence,
|
||||
TotalMedia = cicm.TotalMedia,
|
||||
Side = cicm.SideSpecified ? cicm.Side : null,
|
||||
Layer = cicm.LayerSpecified ? cicm.Layer : null
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user