コード例 #1
0
        public void GetTerminalData()
        {
            string [] message = { "" };
            if (configurationMode == ConfigurationModes.FROM_DEVICE)
            {
                message = Device.GetTerminalData();
            }
            else
            {
                if (serializer.DeviceFirmwareMatches(DeviceInformation.ModelNumber, DeviceInformation.FirmwareVersion))
                {
                    Logger.info("DEVICE INFO: MODEL={0}, FIRMWARE={1}", DeviceInformation.ModelNumber, serializer.GetDeviceFirmware(DeviceInformation.ModelNumber));
                    Device.ValidateTerminalData(serializer);
                    message = serializer.GetTerminalDataString(DeviceInformation.SerialNumber, DeviceInformation.EMVKernelVersion);
                }
                else
                {
                    Logger.error("DEVICE INFO: MODEL={0} - NO VERSION MATCHING [{1}]", DeviceInformation.ModelNumber, DeviceInformation.FirmwareVersion);
                    message[0] = "NO FIRMWARE VERSION MATCH";
                }
            }

            NotificationRaise(new DeviceNotificationEventArgs {
                NotificationType = NOTIFICATION_TYPE.NT_SHOW_TERMINAL_DATA, Message = message
            });
        }