From 542dfe3ebc33eb91bf77147f6a1bc7f02f8eb7de Mon Sep 17 00:00:00 2001 From: Freddie Millman Date: Tue, 29 Oct 2019 16:16:31 +0000 Subject: [PATCH] AW-2643 Add 360 photos property to the Media object --- src/Models/Media.php | 43 +++++++++++++++++++++++++++++++++++++++++++ swagger/api.yml | 7 +++++++ 2 files changed, 50 insertions(+) diff --git a/src/Models/Media.php b/src/Models/Media.php index 6871864..9061e6c 100644 --- a/src/Models/Media.php +++ b/src/Models/Media.php @@ -6,6 +6,14 @@ */ class Media extends SwaggerModel { + /** + * Zero or more 360 photos + * The order of photos will be maintained in the gallery; + * + * @var Photo[] + */ + protected $photos_360; + /** * Zero or more photos * The order of photos will be maintained in the gallery; @@ -41,6 +49,41 @@ class Media extends SwaggerModel protected $tours; + /** + * @return Photo[] + */ + public function getPhotos360() + { + return $this->photos_360; + } + + + /** + * @param Photo[] $photos_360 + * + * @return $this + */ + public function setPhotos360(array $photos_360) + { + $this->photos_360 = $photos_360; + + return $this; + } + + + /** + * @param Photo $photos_360 + * + * @return $this + */ + public function addPhotos360(Photo $photos_360) + { + $this->photos_360[] = $photos_360; + + return $this; + } + + /** * @return Photo[] */ diff --git a/swagger/api.yml b/swagger/api.yml index 61df54a..707ae66 100644 --- a/swagger/api.yml +++ b/swagger/api.yml @@ -921,6 +921,13 @@ definitions: Media: type: object properties: + photos_360: + type: array + description: | + Zero or more 360 photos + The order of photos will be maintained in the gallery; + items: + $ref: '#/definitions/Photo' photos: type: array description: |