Перейти к основному содержимому

GetPropertyGalleryResponse

GetPropertyGalleryResponse - hotel photo gallery response.

previews object[]

Room preview tabs

  • Array [
  • roomTypeIdstring

    Room/object ID (UUID string, empty for hotel-level)

    namestring

    Room name

    fullPathstring

    Full path to cover photo (e.g., "https://cdn.example.com/photos/xxx/")

    fileNamestring

    File name of cover photo (e.g., "cover.jpg")

    countinteger<int32>

    Number of photos in this room

  • ]
  • media object[]

    Media items for current page

  • Array [
  • roomTypeIdstring

    Room/object ID (UUID string, empty for hotel-level)

    idinteger<int32>

    Photo ID (int32 to ensure JSON number serialization)

    titlestring

    Photo title/description

    fullPathstring

    Full path to photo (e.g., "https://cdn.example.com/photos/xxx/")

    fileNamestring

    File name of photo (e.g., "photo1.jpg")

    tags object[]

    Photo tags (array of tag objects)

  • Array [
  • idinteger<int32>

    Tag ID (1-7)

    namestring

    Tag name (BEDROOM, KITCHEN, BATHROOM, YARD, VIEW_FROM_WINDOW, POOL, OTHER)

  • ]
  • aspectRationumber<float>

    Aspect ratio as float (e.g., 1.333 for 4:3, 1.778 for 16:9)

    dateAddstring

    Date photo was added (ISO format string, e.g., "2024-01-15")

  • ]
  • countinteger<int32>

    Total media count (respects tag filter)

    GetPropertyGalleryResponse
    {
    "previews": [
    {
    "roomTypeId": "string",
    "name": "string",
    "fullPath": "string",
    "fileName": "string",
    "count": 0
    }
    ],
    "media": [
    {
    "roomTypeId": "string",
    "id": 0,
    "title": "string",
    "fullPath": "string",
    "fileName": "string",
    "tags": [
    {
    "id": 0,
    "name": "string"
    }
    ],
    "aspectRatio": 0,
    "dateAdd": "string"
    }
    ],
    "count": 0
    }