Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
Navne til: Aspose.BarCode.BarCodeRecognition Sammensætning: Aspose.BarCode.dll (25.5.0)
Offentlige grænseflade for kundesinformation Felder dekodering, der anvendes i AustralienPost symbol.
public interface AustraliaPostCustomerInformationDecoderMethods
Decode(String)
Afkoder Kundens Informationsfelt fra AustralienPost symbologi.Kan bruges til forskellige datainterpretationer fra NTable og CTable kodning.Data leveres som en række barværdier: 0, 1, 2 eller 3.
string Decode(string customerInformationField)Parameters
customerInformationField string
Kundeinformationsfeltet kodet som en række råbarværdier: 0, 1, 2 eller 3
Returns
Det dekoderede kundespecifikationsserie
Examples
Denne prøve viser, hvordan man dekoderer data med AustralienPostCustomerInformationDecoder-grænsefladen
string[] N_Table = { "00", "01", "02", "10", "11", "12", "20", "21", "22", "30" };
public string Decode(string customerInformationField)
{
    StringBuilder bd = new StringBuilder();
    for (int i = 0; customerInformationField.Length > i; i += 2)
    {
        if (customerInformationField.Length >= i + 2)
        {
            string tmp = customerInformationField.Substring(i, 2);
            for (int j = 0; N_Table.Length > j; j++)
            {
                if (N_Table[j].Equals(tmp))
                {
                    bd.Append(j);
                    break;
                }
            }
        }
    }
     return bd.ToString();
}