com.sinch.sdk.domains.conversation.api.v1.adapters.CapabilityService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
package com.sinch.sdk.domains.conversation.api.v1.adapters;
import com.sinch.sdk.core.http.AuthManager;
import com.sinch.sdk.core.http.HttpClient;
import com.sinch.sdk.core.http.HttpMapper;
import com.sinch.sdk.domains.conversation.api.v1.internal.CapabilityApi;
import com.sinch.sdk.domains.conversation.models.v1.capability.request.QueryCapabilityRequest;
import com.sinch.sdk.domains.conversation.models.v1.capability.response.QueryCapabilityResponse;
import com.sinch.sdk.models.ConversationContext;
import java.util.Map;
public class CapabilityService
implements com.sinch.sdk.domains.conversation.api.v1.CapabilityService {
private final String uriUUID;
private final CapabilityApi api;
public CapabilityService(
String uriUUID,
ConversationContext context,
HttpClient httpClient,
Map authManagers) {
this.uriUUID = uriUUID;
this.api = new CapabilityApi(httpClient, context.getServer(), authManagers, new HttpMapper());
}
protected CapabilityApi getApi() {
return this.api;
}
public QueryCapabilityResponse lookup(QueryCapabilityRequest request) {
return getApi().capabilityQueryCapability(uriUUID, request);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy