Skip to content

Latest commit

 

History

History
134 lines (73 loc) · 3.79 KB

File metadata and controls

134 lines (73 loc) · 3.79 KB

HotelReviews

Properties

Name Type Description Notes
Rating Pointer to float32 Aggregate guest rating, typically on a 0-5 scale. [optional]
VotesCount Pointer to int32 Number of guest votes behind the rating. [optional]
RatingDistribution Pointer to map[string]float32 Vote counts keyed by star rating ("1"-"5") when present. [optional]
Extras Pointer to ModelMap [optional]

Methods

NewHotelReviews

func NewHotelReviews() *HotelReviews

NewHotelReviews instantiates a new HotelReviews object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewHotelReviewsWithDefaults

func NewHotelReviewsWithDefaults() *HotelReviews

NewHotelReviewsWithDefaults instantiates a new HotelReviews object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetRating

func (o *HotelReviews) GetRating() float32

GetRating returns the Rating field if non-nil, zero value otherwise.

GetRatingOk

func (o *HotelReviews) GetRatingOk() (*float32, bool)

GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRating

func (o *HotelReviews) SetRating(v float32)

SetRating sets Rating field to given value.

HasRating

func (o *HotelReviews) HasRating() bool

HasRating returns a boolean if a field has been set.

GetVotesCount

func (o *HotelReviews) GetVotesCount() int32

GetVotesCount returns the VotesCount field if non-nil, zero value otherwise.

GetVotesCountOk

func (o *HotelReviews) GetVotesCountOk() (*int32, bool)

GetVotesCountOk returns a tuple with the VotesCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetVotesCount

func (o *HotelReviews) SetVotesCount(v int32)

SetVotesCount sets VotesCount field to given value.

HasVotesCount

func (o *HotelReviews) HasVotesCount() bool

HasVotesCount returns a boolean if a field has been set.

GetRatingDistribution

func (o *HotelReviews) GetRatingDistribution() map[string]float32

GetRatingDistribution returns the RatingDistribution field if non-nil, zero value otherwise.

GetRatingDistributionOk

func (o *HotelReviews) GetRatingDistributionOk() (*map[string]float32, bool)

GetRatingDistributionOk returns a tuple with the RatingDistribution field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRatingDistribution

func (o *HotelReviews) SetRatingDistribution(v map[string]float32)

SetRatingDistribution sets RatingDistribution field to given value.

HasRatingDistribution

func (o *HotelReviews) HasRatingDistribution() bool

HasRatingDistribution returns a boolean if a field has been set.

GetExtras

func (o *HotelReviews) GetExtras() ModelMap

GetExtras returns the Extras field if non-nil, zero value otherwise.

GetExtrasOk

func (o *HotelReviews) GetExtrasOk() (*ModelMap, bool)

GetExtrasOk returns a tuple with the Extras field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetExtras

func (o *HotelReviews) SetExtras(v ModelMap)

SetExtras sets Extras field to given value.

HasExtras

func (o *HotelReviews) HasExtras() bool

HasExtras returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]