zplCore.comzplCore.com

Gs1ElementInfo

public record Gs1ElementInfo

One GS1 element string of a barcode.

Constructors

SignatureDescription
# Gs1ElementInfo(string Ai, string Title, string Value, bool Valid, string? Error = default, string? Interpreted = default)One GS1 element string of a barcode. Ai: Application identifier, e.g. "00". · Title: GS1 data title, e.g. "SSCC" (null for AIs without a known title). · Value: Value as encoded. · Valid: The value passes the GS1 syntax, length and check digit rules. · Error: Why it is invalid (null when valid). · Interpreted: Decoded value where the AI defines one: ISO date for YYMMDD, decimal value for n-decimal AIs.

Properties

PropertyTypeDescription
Ai { get; init; }stringApplication identifier, e.g. "00".
Error { get; init; }stringWhy it is invalid (null when valid).
Interpreted { get; init; }stringDecoded value where the AI defines one: ISO date for YYMMDD, decimal value for n-decimal AIs.
Title { get; init; }stringGS1 data title, e.g. "SSCC" (null for AIs without a known title).
Valid { get; init; }boolThe value passes the GS1 syntax, length and check digit rules.
Value { get; init; }stringValue as encoded.

Methods

Method SignatureReturnsDescription
# Deconstruct(out string Ai, out string Title, out string Value, out bool Valid, out string Error, out string Interpreted)void