protected static function createRequestParameters($sessionId, $sourceAddres, $destinationAddress, $data, $sendDate = null, $validity = 0)
    {
        $parameters = array(
            'sessionId' => $sessionId,
            'sourceAddress' => $sourceAddres,
            'data' => $data
        );

        if (gettype($destinationAddress) == "string") {

            $parameters['destinationAddress'] = $destinationAddress;

        } elseif (gettype($destinationAddress) == "array") {
            $parameters['destinationAddresses'] = $destinationAddress;
        }

        if (gettype($sendDate) == "string") {
            $parameters['sendDate'] = $sendDate;
        } elseif (gettype($sendDate) == "integer") {
            $parameters['sendDate'] = date("Y-m-d", $sendDate).'T'.date("H:i:s", $sendDate);
        }

        if ((gettype($validity) == "integer") && ($validity != 0)) {
            $parameters['validity'] = $validity;
        }

        return $parameters;
    }