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

com.amadeus.referencedata.urls.CheckinLinks Maven / Gradle / Ivy

package com.amadeus.referencedata.urls;

import com.amadeus.Amadeus;
import com.amadeus.Params;
import com.amadeus.Response;
import com.amadeus.exceptions.ResponseException;
import com.amadeus.resources.CheckinLink;
import com.amadeus.resources.Resource;
import com.google.gson.Gson;

/**
 * 

* A namespaced client for the * /v2/reference-data/urls/checkin-links endpoints. *

* *

* Access via the Amadeus client object. *

* *
 * Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build();
 * amadeus.referenceData.urls.checkinLinks;
*/ public class CheckinLinks { private Amadeus client; /** * Constructor. * @hide */ public CheckinLinks(Amadeus client) { this.client = client; } /** *

* Returns the checkin links for an airline, for the * language of your choice. *

* *
   * amadeus.referenceData.urls.checkinLinks.get(Params.with("airlineCode", "BA"));
* * @param params the parameters to send to the API * @return an API resource * @throws ResponseException when an exception occurs */ public CheckinLink[] get(Params params) throws ResponseException { Response response = client.get("/v2/reference-data/urls/checkin-links", params); return (CheckinLink[]) Resource.fromArray(response, CheckinLink[].class); } /** * Convenience method for calling get without any parameters. * @see CheckinLinks#get() */ public CheckinLink[] get() throws ResponseException { return get(null); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy