public class ViewerApi
extends java.lang.Object
Constructor | Description |
---|---|
ViewerApi(Configuration configuration) |
Initializes new instance of ViewerApi
|
ViewerApi(java.lang.String appSid,
java.lang.String appKey) |
Initializes new instance of ViewerApi
|
Modifier and Type | Method | Description |
---|---|---|
ViewResult |
createView(CreateViewRequest request) |
Create new view if it not exists
|
com.squareup.okhttp.Call |
createViewAsync(CreateViewRequest request,
ApiCallback<ViewResult> callback) |
Create new view if it not exists (asynchronously)
|
com.squareup.okhttp.Call |
createViewCall(CreateViewRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for createView
|
ApiResponse<ViewResult> |
createViewWithHttpInfo(CreateViewRequest request) |
Create new view if it not exists
|
void |
deleteView(DeleteViewRequest request) |
Delete view
|
com.squareup.okhttp.Call |
deleteViewAsync(DeleteViewRequest request,
ApiCallback<java.lang.Void> callback) |
Delete view (asynchronously)
|
com.squareup.okhttp.Call |
deleteViewCall(DeleteViewRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for deleteView
|
ApiResponse<java.lang.Void> |
deleteViewWithHttpInfo(DeleteViewRequest request) |
Delete view
|
ApiClient |
getApiClient() |
Gets ApiClient
|
InfoResult |
getInfo(GetInfoRequest request) |
Get information about view
|
com.squareup.okhttp.Call |
getInfoAsync(GetInfoRequest request,
ApiCallback<InfoResult> callback) |
Get information about view (asynchronously)
|
com.squareup.okhttp.Call |
getInfoCall(GetInfoRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getInfo
|
ApiResponse<InfoResult> |
getInfoWithHttpInfo(GetInfoRequest request) |
Get information about view
|
FormatsResult |
getSupportedFileFormats() |
Get supported file formats
|
com.squareup.okhttp.Call |
getSupportedFileFormatsAsync(ApiCallback<FormatsResult> callback) |
Get supported file formats (asynchronously)
|
com.squareup.okhttp.Call |
getSupportedFileFormatsCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getSupportedFileFormats
|
ApiResponse<FormatsResult> |
getSupportedFileFormatsWithHttpInfo() |
Get supported file formats
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
public ViewerApi(java.lang.String appSid, java.lang.String appKey)
appSid
- Application identifier (App SID)appKey
- Application private key (App Key)public ViewerApi(Configuration configuration)
configuration
- Configuration The configurationpublic ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- The Api clientpublic com.squareup.okhttp.Call createViewCall(CreateViewRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ViewResult createView(CreateViewRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ViewResult> createViewWithHttpInfo(CreateViewRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createViewAsync(CreateViewRequest request, ApiCallback<ViewResult> callback) throws ApiException
request
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteViewCall(DeleteViewRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic void deleteView(DeleteViewRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteViewWithHttpInfo(DeleteViewRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteViewAsync(DeleteViewRequest request, ApiCallback<java.lang.Void> callback) throws ApiException
request
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getInfoCall(GetInfoRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic InfoResult getInfo(GetInfoRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InfoResult> getInfoWithHttpInfo(GetInfoRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getInfoAsync(GetInfoRequest request, ApiCallback<InfoResult> callback) throws ApiException
request
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getSupportedFileFormatsCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic FormatsResult getSupportedFileFormats() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<FormatsResult> getSupportedFileFormatsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSupportedFileFormatsAsync(ApiCallback<FormatsResult> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.