Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
اسم الفضاء : Aspose.BarCode.BarCodeRecognition تجميع: Aspose.BarCode.dll (25.4.0)
واجهة عامة لتفريغ نطاق معلومات العملاء المستخدمة في علامة البريد الإلكتروني.يجب توفير التنفيذ من قبل المستخدم.
public interface AustraliaPostCustomerInformationDecoder
Methods
Decode(الستار)
قم بتفكيك نطاق معلومات العملاء من أسترالياموقع الرمزية.يمكن استخدامها لتفسير البيانات المختلفة من NTable و CTable التشفير.يتم توفير البيانات كسلسلة من قيم الشريط: 0، 1، 2 أو 3.
string Decode(string customerInformationField)
Parameters
customerInformationField
string
حقل معلومات العملاء المشفرة كسلسلة من قيم الشريط الخام: 0، 1، 2 أو 3
Returns
شريط حقل معلومات العملاء المكرر
Examples
هذا العينة يظهر كيفية تفريغ البيانات باستخدام واجهة AustraliaPostCustomerInformationDecoder
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();
}