Exemple #1
0
        public static string GetFullDescription(byte[] source, E_EMVShowOption options)
        {
            StringBuilder stringBuilder = new StringBuilder();

            foreach (EMV_TAG emvtaG in EMVAnalyzer.GetEMVTAGs(source))
            {
                stringBuilder.Append(emvtaG.ToString(options));
                stringBuilder.Append("\r\n");
            }
            return(stringBuilder.ToString());
        }
Exemple #2
0
        public string LogFormat(int _EndBits)
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append("Message Type = " + this.MessageType.ToString() + "\r\n");
            for (int index = 0; index < _EndBits; ++index)
            {
                if (this.m_BitAttributes[index].IsSet)
                {
                    stringBuilder.Append("Field ");
                    stringBuilder.Append((index + 1).ToString());
                    stringBuilder.Append(" = \"");
                    stringBuilder.Append(this.m_BitAttributes[index].ToString());
                    stringBuilder.Append("\"\r\n");
                    if ((index == 54 || index == 55) && this.EMVShowOptions != E_EMVShowOption.None)
                    {
                        stringBuilder.Append(EMVAnalyzer.GetFullDescription(this.m_BitAttributes[index].Data, E_EMVShowOption.VALUE | E_EMVShowOption.NAME | E_EMVShowOption.DESCRIPTION | E_EMVShowOption.BITS));
                    }
                }
            }
            return(stringBuilder.ToString());
        }