[Aaru.CommonTypes] Reformat and cleanup.

This commit is contained in:
2023-10-03 22:48:28 +01:00
parent 68d85349b1
commit 47294b2f62
81 changed files with 4583 additions and 2851 deletions

View File

@@ -47,15 +47,33 @@ namespace Aaru.CommonTypes.AaruMetadata;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum BarcodeType
{
Aztec, Codabar, Code11,
Code128, Code39, Code93,
CPC_Binary, EZcode, FIM,
ITF, ITF14, EAN13,
EAN8, MaxiCode, ISBN,
ISRC, MSI, ShotCode,
RM4SCC, QR, EAN5,
EAN2, POSTNET, PostBar,
Plessey, Pharmacode, PDF417,
Aztec,
Codabar,
Code11,
Code128,
Code39,
Code93,
CPC_Binary,
EZcode,
FIM,
ITF,
ITF14,
EAN13,
EAN8,
MaxiCode,
ISBN,
ISRC,
MSI,
ShotCode,
RM4SCC,
QR,
EAN5,
EAN2,
POSTNET,
PostBar,
Plessey,
Pharmacode,
PDF417,
PatchCode
}
@@ -65,9 +83,11 @@ public class Barcode
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
};
}
public static implicit operator Barcode(Schemas.BarcodeType cicm) => cicm is null
? null
: new Barcode
{
Type = (BarcodeType)cicm.type,
Value = cicm.Value
};
}