public Response HandleRequest(Request request)
        {
            ClickCommand action = (ClickCommand)Convert.ToInt32(request.RequestedParameters[0]);

            switch (action)
            {
                case ClickCommand.LeftClickDown:
                    MouseController.LeftClickDown();
                    break;

                case ClickCommand.LeftClickUp:
                    MouseController.LeftClickUp();
                    break;

                case ClickCommand.RightClickDown:
                    MouseController.RightClickDown();
                    break;

                case ClickCommand.RightClickUp:
                    MouseController.RightClickUp();
                    break;
            }

            Response response = new Response();
            response.StatusCode = TCPStatusCodes.Ok;
            return response;
        }
        public Response HandleRequest(Request request)
        {
            Response response = new Response();
            response.StatusCode = TCPStatusCodes.Ok;

            if (!SecurityManager.Instance.IsAuthorized(request.MACAddress))
            {
                response.StatusCode = TCPStatusCodes.NotAuthorized;
                Log.Info("Security", "Authorization attempt failed from MAC " + request.MACAddress);
            }
            else
            {
                response.StatusCode = TCPStatusCodes.Ok;
                Log.Info("Security", "Use authorised successfully from MAC " + request.MACAddress);
            }

            return response;
        }