public BridgeEnums.EShutdownErrorCode Shutdown()
    {
        unsafe
        {
            fixed(byte *responseBufferPtr = &responseBuffer[0])
            {
                UShutdown(responseBufferPtr, responseBufferSize);
            }

            responseAsString = System.Text.Encoding.ASCII.GetString(responseBuffer, 0, responseBuffer.Length);
        }

        // Parse json message we received:
        baseServerResponse = JsonUtility.FromJson <BaseServerJSONResponse>(responseAsString);
        return((BridgeEnums.EShutdownErrorCode)baseServerResponse.error_code);
    }
    public BridgeEnums.ENotifyRuntimeErrorCode NotifyRuntime(BridgeEnums.ENotification message)
    {
        unsafe
        {
            fixed(byte *responseBufferPtr = &responseBuffer[0])
            {
                UNotifyRuntime(responseBufferPtr, responseBufferSize, (int)message);
            }

            responseAsString = System.Text.Encoding.ASCII.GetString(responseBuffer, 0, responseBuffer.Length);
        }

        // Parse json message we received:
        baseServerResponse = JsonUtility.FromJson <BaseServerJSONResponse>(responseAsString);
        return((BridgeEnums.ENotifyRuntimeErrorCode)baseServerResponse.error_code);
    }
    public BridgeEnums.ESetHandsSegmentationThresholdErrorCode SetHandsSegmentationThreshold(BridgeEnums.EHandsRepresentationMode eHandsRepresentationMode, float segmentationThreshold)
    {
        unsafe
        {
            fixed(byte *responseBufferPtr = &responseBuffer[0])
            {
                USetHandsSegmentationThreshold(responseBufferPtr, responseBufferSize, (int)eHandsRepresentationMode, segmentationThreshold);
            }

            responseAsString = System.Text.Encoding.ASCII.GetString(responseBuffer, 0, responseBuffer.Length);
        }

        // Parse json message we received:
        baseServerResponse = JsonUtility.FromJson <BaseServerJSONResponse>(responseAsString);
        return((BridgeEnums.ESetHandsSegmentationThresholdErrorCode)baseServerResponse.error_code);
    }
    /**	\brief Starts automatic alignment for a given amount of time.
     */
    public BridgeEnums.EAutoAlignForErrorCode AutoAlignFor(ushort milliseconds)
    {
        unsafe
        {
            fixed(byte *responseBufferPtr = &responseBuffer[0])
            {
                UAutoAlignFor(responseBufferPtr, responseBufferSize, milliseconds);
            }

            responseAsString = System.Text.Encoding.ASCII.GetString(responseBuffer, 0, responseBuffer.Length);
        }

        // Parse json message we received:
        baseServerResponse = JsonUtility.FromJson <BaseServerJSONResponse>(responseAsString);
        return((BridgeEnums.EAutoAlignForErrorCode)baseServerResponse.error_code);
    }
    /** \brief Sets the LED color for a specific key using keyCode (scan code).
     *
     * R, G and B should be integers between 0 and 255.
     */
    public BridgeEnums.ESetKeyLEDErrorCode SetKeyLEDColor(int keyCode, int colorR, int colorG, int colorB, int colorA)
    {
        unsafe
        {
            fixed(byte *responseBufferPtr = &responseBuffer[0])
            {
                USetKeyLEDColor(responseBufferPtr, responseBufferSize, keyCode, colorR, colorG, colorB, colorA);
            }

            responseAsString = System.Text.Encoding.ASCII.GetString(responseBuffer, 0, responseBuffer.Length);
        }

        // Parse json message we received:
        baseServerResponse = JsonUtility.FromJson <BaseServerJSONResponse>(responseAsString);
        return((BridgeEnums.ESetKeyLEDErrorCode)baseServerResponse.error_code);
    }
    public BridgeEnums.ESetSkinErrorCode SetSkin(string skinName)
    {
        byte[] skinNameBytes = System.Text.Encoding.ASCII.GetBytes(skinName);
        unsafe
        {
            fixed(byte *responseBufferPtr = &responseBuffer[0])
            {
                fixed(byte *skinNameBytesPtr = &skinNameBytes[0])
                {
                    USetSkin(responseBufferPtr, responseBufferSize, skinNameBytesPtr, skinNameBytes.Length);
                }
            }

            responseAsString = System.Text.Encoding.ASCII.GetString(responseBuffer, 0, responseBuffer.Length);
        }

        // Parse json message we received:
        baseServerResponse = JsonUtility.FromJson <BaseServerJSONResponse>(responseAsString);
        return((BridgeEnums.ESetSkinErrorCode)baseServerResponse.error_code);
    }