public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->hasRealThumbnail)) {
         $this->hasRealThumbnail = true;
     }
     if (count($xml->editorType)) {
         $this->editorType = (int) $xml->editorType;
     }
     $this->dataContent = (string) $xml->dataContent;
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->mediaType)) {
         $this->mediaType = (int) $xml->mediaType;
     }
     $this->conversionQuality = (string) $xml->conversionQuality;
     $this->sourceType = (string) $xml->sourceType;
     if (count($xml->searchProviderType)) {
         $this->searchProviderType = (int) $xml->searchProviderType;
     }
     $this->searchProviderId = (string) $xml->searchProviderId;
     $this->creditUserName = (string) $xml->creditUserName;
     $this->creditUrl = (string) $xml->creditUrl;
     if (count($xml->mediaDate)) {
         $this->mediaDate = (int) $xml->mediaDate;
     }
     $this->dataUrl = (string) $xml->dataUrl;
     $this->flavorParamsIds = (string) $xml->flavorParamsIds;
 }