private void SendButtonImageResponse(Socket socket, string code, byte[] imageAsBytes)
        {
            var buttonImageResponse = new ButtonImageResponse {
                Code  = code,
                Bytes = imageAsBytes
            };

            Send(socket, buttonImageResponse.ToString());
        }
Exemplo n.º 2
0
        private void SendButtonImageResponse(Socket socket, ShowCardButton cardButton)
        {
            var buttonImageResponse = new ButtonImageResponse {
                Name  = cardButton?.Card.Name,
                Bytes = cardButton?.Card.ButtonImageAsBytes
            };

            Send(socket, buttonImageResponse.ToString());
        }