travel.wink.sdk.extranet.facilities.ExtranetFacilitiesSDKConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extranet-facilities-sdk-java Show documentation
Show all versions of extranet-facilities-sdk-java Show documentation
Java SDK for the Wink Extranet Facilities API
The newest version!
package travel.wink.sdk.extranet.facilities;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;
import travel.wink.sdk.extranet.facilities.api.GuestRoomApi;
import travel.wink.sdk.extranet.facilities.api.MeetingRoomApi;
import travel.wink.sdk.extranet.facilities.api.RestaurantApi;
import travel.wink.sdk.extranet.facilities.api.SpaApi;
import travel.wink.sdk.extranet.facilities.invoker.ApiClient;
@RequiredArgsConstructor
@Configuration
public class ExtranetFacilitiesSDKConfiguration {
private final WebClient webClient;
@Bean
public ApiClient apiClient() {
return new ApiClient(this.webClient);
}
@Bean
public GuestRoomApi guestRoomApi() {
return new GuestRoomApi(apiClient());
}
@Bean
public MeetingRoomApi meetingRoomApi() {
return new MeetingRoomApi(apiClient());
}
@Bean
public RestaurantApi restaurantApi() {
return new RestaurantApi(apiClient());
}
@Bean
public SpaApi spaApi() {
return new SpaApi(apiClient());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy