com.launchkey.sdk.transport.v1.Transport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of launchkey-sdk Show documentation
Show all versions of launchkey-sdk Show documentation
SDK for interacting with the LaunchKey distributed authentication and authorization platform
/**
* Copyright 2015 LaunchKey, Inc. All rights reserved.
*
* Licensed under the MIT License.
* You may not use this file except in compliance with the License.
* A copy of the License is located in the "LICENSE.txt" file accompanying
* this file. This file is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.launchkey.sdk.transport.v1;
import com.launchkey.sdk.service.error.ApiException;
import com.launchkey.sdk.transport.v1.domain.*;
/**
* Interface for interacting with the LaunchKey API v1
*/
public interface Transport {
/**
* Send a ping request
* @param request Ping request data
* @return Ping response
* @throws ApiException When an error occurs processing the request
*/
PingResponse ping(PingRequest request) throws ApiException;
/**
* Send an auths request
* @param request Auths request data
* @return Auths response
* @throws ApiException When an error occurs processing the request
*/
AuthsResponse auths(AuthsRequest request) throws ApiException;
/**
* Send a poll request
* @param request Poll request data
* @return Poll response data
* @throws ApiException When an error occurs processing the request
*/
PollResponse poll(PollRequest request) throws ApiException;
/**
* Perform a logs request
* @param request Logs request data
* @throws ApiException When an error occurs processing the request
*/
void logs(LogsRequest request) throws ApiException;
/**
* Perform a users request
* @param request Users request data
* @return Users response data
* @throws ApiException When an error occurs processing the request
*/
UsersResponse users(UsersRequest request) throws ApiException;
}