function dispatch($id, Kaltura_Client_EventNotification_Type_EventNotificationDispatchJobData $data) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "data", $data->toParams()); $this->client->queueServiceActionCall("eventnotification_eventnotificationtemplate", "dispatch", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function dispatch($id, Kaltura_Client_EventNotification_Type_EventNotificationDispatchJobData $data) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "data", $data->toParams()); $this->client->queueServiceActionCall("eventnotification_eventnotificationtemplate", "dispatch", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "integer"); return $resultObject; }