# LodgingReservationEntity

# LodgingReservationEntity

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity "View this page in Java")  

<br />

```
class LodgingReservationEntity : Entity
```

<br />

|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                               |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity)                                        ||
|   | ↳ | [com.google.android.engage.travel.datamodel.LodgingReservationEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity) |

*** ** * ** ***

An object representing a lodging reservation entity.

## Summary

|                                                                                                                                                            ### Nested types                                                                                                                                                             |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[LodgingReservationEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity.Builder) Builder class for[LodgingReservationEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity). |

|                                                                                                                                               ### Public functions                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`                                                                                                                                                                                                                                            | [getActionUri](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getActionUri())`()` Returns the action uri of the lodging reservation entity.                                              |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getDescription())`()` Returns the description (typically a single paragraph of text) for the lodging reservation entity. |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getEntityId())`()` Returns the reservation id of the entity.                                                                |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!` | [getPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getPosterImages())`()` Returns the poster image of the lodging reservation entity.                                      |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price)`!>!`                                                                                                         | [getPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getPrice())`()` Returns the price of the lodging reservation entity.                                                           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getPriceCallout](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getPriceCallout())`()` Returns the price callout for the lodging reservation entity. e.g. "Limited offer"               |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Rating](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Rating)`!>!`                                                                                                       | [getRating](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getRating())`()` Returns the rating of the lodging reservation entity.                                                        |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getReservationId](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getReservationId())`()` Returns the reservation ID of the entity.                                                      |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                         | [getSubtitleList](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getSubtitleList())`()` Returns the list of subtitles for the lodging reservation entity.                                |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                                                                                                                                               | [getTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getTitle())`()` Returns the name/title of the lodging reservation Entity.                                                      |

|                                                                                                             ### Public properties                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Address](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Address)`!`                                                                                                                                | [address](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#address())                                                                                                                                                                                                                                  |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)                                                                                                                                                                   | [checkInTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#checkInTime()) **This property is deprecated.** Use[localizedCheckInTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckInTime())instead. <br />     |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)                                                                                                                                                                   | [checkOutTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#checkOutTime()) **This property is deprecated.** Use[localizedCheckOutTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckOutTime())instead. <br /> |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` | [displayTimeWindows](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#displayTimeWindows())                                                                                                                                                                                                            |
| [LocalizedTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp)`!`                                                                                                          | [localizedCheckInTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckInTime())                                                                                                                                                                                                        |
| [LocalizedTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp)`!`                                                                                                          | [localizedCheckOutTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckOutTime())                                                                                                                                                                                                      |

|                                                                                                                                                                                                                                                                                         ### Inherited functions                                                                                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity) |----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getEntityType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public functions

### getActionUri

```
fun getActionUri(): Uri!
```

Returns the action uri of the lodging reservation entity.  

### getDescription

```
fun getDescription(): Optional<String!>!
```

Returns the description (typically a single paragraph of text) for the lodging reservation entity.  

### getEntityId

```
fun getEntityId(): Optional<String!>!
```

Returns the reservation id of the entity.  

### getPosterImages

```
fun getPosterImages(): (Mutable)List<Image!>!
```

Returns the poster image of the lodging reservation entity.  

### getPrice

```
fun getPrice(): Optional<Price!>!
```

Returns the price of the lodging reservation entity.  

### getPriceCallout

```
fun getPriceCallout(): Optional<String!>!
```

Returns the price callout for the lodging reservation entity. e.g. "Limited offer"  

### getRating

```
fun getRating(): Optional<Rating!>!
```

Returns the rating of the lodging reservation entity.  

### getReservationId

```
fun getReservationId(): Optional<String!>!
```

Returns the reservation ID of the entity.  

### getSubtitleList

```
fun getSubtitleList(): (Mutable)List<String!>!
```

Returns the list of subtitles for the lodging reservation entity.  

### getTitle

```
fun getTitle(): String!
```

Returns the name/title of the lodging reservation Entity.  

## Public properties

### address

```
val address: Address!
```  

### checkInTime

```
val checkInTime: Long
```
| **This property is deprecated.**   
|
Use[localizedCheckInTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckInTime())instead.  

### checkOutTime

```
val checkOutTime: Long
```
| **This property is deprecated.**   
|
Use[localizedCheckOutTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckOutTime())instead.  

### displayTimeWindows

```
val displayTimeWindows: ImmutableList<DisplayTimeWindow!>!
```  

### localizedCheckInTime

```
val localizedCheckInTime: LocalizedTimestamp!
```  

### localizedCheckOutTime

```
val localizedCheckOutTime: LocalizedTimestamp!
```