Adding attachments and content id map (#316)

This commit is contained in:
Tobias Nyholm 2017-03-26 16:42:12 +02:00 committed by GitHub
parent 1222104e54
commit 511ad186ce

View File

@ -150,6 +150,12 @@ class ShowResponse implements ApiResponse
if (isset($data['body-mime'])) { if (isset($data['body-mime'])) {
$response->setBodyMime($data['body-mime']); $response->setBodyMime($data['body-mime']);
} }
if (isset($data['attachments'])) {
$response->setAttachments($data['attachments']);
}
if (isset($data['content-id-map'])) {
$response->setContentIdMap($data['content-id-map']);
}
return $response; return $response;
} }
@ -338,6 +344,14 @@ class ShowResponse implements ApiResponse
return $this->attachments; return $this->attachments;
} }
/**
* @param array $attachments
*/
private function setAttachments($attachments)
{
$this->attachments = $attachments;
}
/** /**
* @return string * @return string
*/ */
@ -362,6 +376,14 @@ class ShowResponse implements ApiResponse
return $this->contentIdMap; return $this->contentIdMap;
} }
/**
* @param string $contentIdMap
*/
public function setContentIdMap($contentIdMap)
{
$this->contentIdMap = $contentIdMap;
}
/** /**
* @return array * @return array
*/ */