public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->token = (string) $xml->token;
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->dropFolderFileId)) {
         $this->dropFolderFileId = (int) $xml->dropFolderFileId;
     }
 }
 /**
  * Append recorded video to live entry
  * 	 
  * 
  * @return \Kaltura\Client\Type\LiveEntry
  */
 function appendRecording($entryId, $assetId, $mediaServerIndex, \Kaltura\Client\Type\DataCenterContentResource $resource, $duration, $isLastChunk = false)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "assetId", $assetId);
     $this->client->addParam($kparams, "mediaServerIndex", $mediaServerIndex);
     $this->client->addParam($kparams, "resource", $resource->toParams());
     $this->client->addParam($kparams, "duration", $duration);
     $this->client->addParam($kparams, "isLastChunk", $isLastChunk);
     $this->client->queueServiceActionCall("livestream", "appendRecording", "KalturaLiveEntry", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result);
     $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaLiveEntry");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\LiveEntry");
     return $resultObject;
 }