All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amadeus.ereputation.HotelSentiments Maven / Gradle / Ivy

package com.amadeus.ereputation;

import com.amadeus.Amadeus;
import com.amadeus.Params;
import com.amadeus.Response;
import com.amadeus.exceptions.ResponseException;
import com.amadeus.resources.HotelSentiment;
import com.amadeus.resources.Resource;

/**
 * 

* A namespaced client for the * /v2/e-reputation/hotel-sentiments endpoints. *

* *

* Access via the Amadeus client object. *

* *
 * Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
 * amadeus.ereputation.hotelSentiments;
*/ public class HotelSentiments { private Amadeus client; /** * Constructor. * @hide */ public HotelSentiments(Amadeus client) { this.client = client; } /** *

* Hotel ratings based on automated sentiment analysis algorithm * applied on the online reviews. *

* *
   * amadeus.ereputation.hotelSentiments.get(Params
   *   .with("hotelIds", "ELONMFS,ADNYCCTB"));
* * @param params the parameters to send to the API * @return an API response object * @throws ResponseException when an exception occurs */ public HotelSentiment[] get(Params params) throws ResponseException { Response response = client.get("/v2/e-reputation/hotel-sentiments", params); return (HotelSentiment[]) Resource.fromArray(response, HotelSentiment[].class); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy