Skip to content

Commit

Permalink
Merge pull request #5 from sturents/fjmillman/AW-2244/add-tours-to-me…
Browse files Browse the repository at this point in the history
…dia-object

Add Tours to Media Object
  • Loading branch information
M1ke authored Oct 4, 2019
2 parents 398729c + b04a647 commit 39d6e2f
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down Expand Up @@ -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;
}
}
7 changes: 7 additions & 0 deletions swagger/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 39d6e2f

Please sign in to comment.