Ejemplo n.º 1
0
        public static Messages.Response EpaymentPing(Messages.Request request)
        {
            string device   = request.Parameters.Value <string>("device");
            string port     = request.Parameters.Value <string>("port");
            string protocol = request.Parameters.Value <string>("protocol");

            ConcertProtocol concertProtocol = ConcertProtocol.find(protocol);

            concertProtocol.Terminal = new SerialTerminal(port);
            concertProtocol.SendTest();

            return(request.Success(true));
        }