public void OnMessage(CoreMessage message)
        {
            var c = message.ToString();

            if (c == "CARD_DETECTED")
            {
                labelDetected.Text = message.ToString();
            }
            else
            {
                labelStatus.Text = message.ToString();
            }
            if (message == CoreMessage.DELAYED_AUTH_AMOUNT_CONFIRMED)
            {
                Console.WriteLine($"OnMessage() DELAYED_AUTH_AMOUNT_CONFIRMED" + message.ToString());
            }
            if (message == CoreMessage.DELAYED_AUTH_AMOUNT_DECLINED)
            {
                Console.WriteLine($"OnMessage() DELAYED_AUTH_AMOUNT_DECLINED" + message.ToString());
            }
        }
Exemple #2
0
 public void QueueMessage(CoreMessage msg)
 {
     _frameworkMessenger.Report(string.Concat("Core Message:", msg.ToString()));
     _messageQueue.Enqueue(msg);
 }