Add converters from CICM Metadata to Aaru Metadata.

This commit is contained in:
2022-12-16 01:16:41 +00:00
parent 4cdf541a09
commit 647d3fac26
32 changed files with 1649 additions and 22 deletions

View File

@@ -36,11 +36,11 @@
// Copyright © 2011-2023 Natalia Portillo
// ****************************************************************************/
// ReSharper disable UnusedMember.Global
// ReSharper disable ClassNeverInstantiated.Global
using System;
namespace Aaru.CommonTypes.AaruMetadata;
public enum BarcodeType
@@ -61,4 +61,11 @@ public class Barcode
{
public BarcodeType Type { get; set; }
public string Value { get; set; }
[Obsolete("Will be removed in Aaru 7")]
public static implicit operator Barcode(Schemas.BarcodeType cicm) => cicm is null ? null : new Barcode
{
Type = (BarcodeType)cicm.type,
Value = cicm.Value
};
}