Example #1
0
 /**
  * Extracts volume
  *
  * @param ExtractVolumeData $requestData Extract volume request data object
  * @return ExtractTemplateResponseData
  */
 public function extractVolume(ExtractVolumeData $requestData)
 {
     $result = null;
     $response = $this->getClient()->call('extractVolume', $requestData->toArray());
     if ($response->hasError() === false) {
         $resultObject = $response->getResult();
         if (!empty($resultObject)) {
             $result = $this->_loadExtractTemplateData($resultObject);
         }
     }
     return $result;
 }
Example #2
0
 /**
  * Extracts volume
  *
  * @param ExtractVolumeData|array $request Extract volume request data object
  * @return ExtractTemplateResponseData
  */
 public function extract($request)
 {
     if ($request !== null && !$request instanceof ExtractVolumeData) {
         $request = ExtractVolumeData::initArray($request);
     }
     return $this->getApiHandler()->extractVolume($request);
 }