From b04a64769ca099850868b312cc87dbe3c10631b9 Mon Sep 17 00:00:00 2001 From: Freddie Millman Date: Thu, 3 Oct 2019 16:58:27 +0100 Subject: [PATCH] Update Swagger and run Generate for added 'tours' property in 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 6d624f3..6871864 100644 --- a/src/Models/Media.php +++ b/src/Models/Media.php @@ -32,6 +32,14 @@ class Media extends SwaggerModel */ protected $floorplans; + /** + * Zero or more 360 tour URLs to an external service. Any 360 tour source can be supplied + * and used as a link + * + * @var string[] + */ + protected $tours; + /** * @return Photo[] @@ -136,4 +144,39 @@ public function addFloorplan($floorplan) return $this; } + + + /** + * @return string[] + */ + public function getTours() + { + return $this->tours; + } + + + /** + * @param string[] $tours + * + * @return $this + */ + public function setTours(array $tours) + { + $this->tours = $tours; + + return $this; + } + + + /** + * @param string $tour + * + * @return $this + */ + public function addTour($tour) + { + $this->tours[] = $tour; + + return $this; + } } diff --git a/swagger/api.yml b/swagger/api.yml index 4822c77..61df54a 100644 --- a/swagger/api.yml +++ b/swagger/api.yml @@ -944,6 +944,13 @@ definitions: These will be downloaded and stored on StuRents' system items: type: string + tours: + type: array + description: | + Zero or more 360 tour URLs to an external service. Any 360 tour source can be supplied + and used as a link + items: + type: string Photo: type: object properties: