public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->thumbParamsId)) {
         $this->thumbParamsId = (int) $xml->thumbParamsId;
     }
     $this->thumbParamsVersion = (string) $xml->thumbParamsVersion;
     $this->thumbAssetId = (string) $xml->thumbAssetId;
     $this->thumbAssetVersion = (string) $xml->thumbAssetVersion;
     if (count($xml->rotate)) {
         $this->rotate = (int) $xml->rotate;
     }
 }
 /**
  * Get download URL for the asset
  * 	 
  * 
  * @return string
  */
 function getUrl($id, $storageId = null, \Kaltura\Client\Type\ThumbParams $thumbParams = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "storageId", $storageId);
     if ($thumbParams !== null) {
         $this->client->addParam($kparams, "thumbParams", $thumbParams->toParams());
     }
     $this->client->queueServiceActionCall("thumbasset", "getUrl", 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 = (string) \Kaltura\Client\ParseUtils::unmarshalSimpleType($resultXmlObject->result);
     return $resultObject;
 }
 /**
  * Update Thumb Params by ID
  * 	 
  * 
  * @return \Kaltura\Client\Type\ThumbParams
  */
 function update($id, \Kaltura\Client\Type\ThumbParams $thumbParams)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "thumbParams", $thumbParams->toParams());
     $this->client->queueServiceActionCall("thumbparams", "update", "KalturaThumbParams", $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, "KalturaThumbParams");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\ThumbParams");
     return $resultObject;
 }