Skip to content

Commit

Permalink
Merge pull request #6 from sturents/fjmillman/AW-2643/add-360-photos-…
Browse files Browse the repository at this point in the history
…to-outbound-api

AW-2643 Add 360 photos property to the Media object
  • Loading branch information
M1ke authored Oct 29, 2019
2 parents 39d6e2f + 542dfe3 commit 21513ff
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 @@ -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;
Expand Down Expand Up @@ -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[]
*/
Expand Down
7 changes: 7 additions & 0 deletions swagger/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 21513ff

Please sign in to comment.