public class TaskAttachmentApi extends Object
Constructor and Description |
---|
TaskAttachmentApi() |
TaskAttachmentApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
AttachmentDto |
addAttachment(String id,
String attachmentName,
String attachmentDescription,
String attachmentType,
String url,
File content)
Create
Creates an attachment for a task.
|
okhttp3.Call |
addAttachmentAsync(String id,
String attachmentName,
String attachmentDescription,
String attachmentType,
String url,
File content,
ApiCallback<AttachmentDto> _callback)
Create (asynchronously)
Creates an attachment for a task.
|
okhttp3.Call |
addAttachmentCall(String id,
String attachmentName,
String attachmentDescription,
String attachmentType,
String url,
File content,
ApiCallback _callback)
Build call for addAttachment
|
ApiResponse<AttachmentDto> |
addAttachmentWithHttpInfo(String id,
String attachmentName,
String attachmentDescription,
String attachmentType,
String url,
File content)
Create
Creates an attachment for a task.
|
void |
deleteAttachment(String id,
String attachmentId)
Delete
Removes an attachment from a task by id.
|
okhttp3.Call |
deleteAttachmentAsync(String id,
String attachmentId,
ApiCallback<Void> _callback)
Delete (asynchronously)
Removes an attachment from a task by id.
|
okhttp3.Call |
deleteAttachmentCall(String id,
String attachmentId,
ApiCallback _callback)
Build call for deleteAttachment
|
ApiResponse<Void> |
deleteAttachmentWithHttpInfo(String id,
String attachmentId)
Delete
Removes an attachment from a task by id.
|
ApiClient |
getApiClient() |
AttachmentDto |
getAttachment(String id,
String attachmentId)
Get
Retrieves a task attachment by task id and attachment id.
|
okhttp3.Call |
getAttachmentAsync(String id,
String attachmentId,
ApiCallback<AttachmentDto> _callback)
Get (asynchronously)
Retrieves a task attachment by task id and attachment id.
|
okhttp3.Call |
getAttachmentCall(String id,
String attachmentId,
ApiCallback _callback)
Build call for getAttachment
|
File |
getAttachmentData(String id,
String attachmentId)
Get (Binary)
Retrieves the binary content of a task attachment by task id and attachment id.
|
okhttp3.Call |
getAttachmentDataAsync(String id,
String attachmentId,
ApiCallback<File> _callback)
Get (Binary) (asynchronously)
Retrieves the binary content of a task attachment by task id and attachment id.
|
okhttp3.Call |
getAttachmentDataCall(String id,
String attachmentId,
ApiCallback _callback)
Build call for getAttachmentData
|
ApiResponse<File> |
getAttachmentDataWithHttpInfo(String id,
String attachmentId)
Get (Binary)
Retrieves the binary content of a task attachment by task id and attachment id.
|
List<AttachmentDto> |
getAttachments(String id)
Get List
Gets the attachments for a task.
|
okhttp3.Call |
getAttachmentsAsync(String id,
ApiCallback<List<AttachmentDto>> _callback)
Get List (asynchronously)
Gets the attachments for a task.
|
okhttp3.Call |
getAttachmentsCall(String id,
ApiCallback _callback)
Build call for getAttachments
|
ApiResponse<List<AttachmentDto>> |
getAttachmentsWithHttpInfo(String id)
Get List
Gets the attachments for a task.
|
ApiResponse<AttachmentDto> |
getAttachmentWithHttpInfo(String id,
String attachmentId)
Get
Retrieves a task attachment by task id and attachment id.
|
void |
setApiClient(ApiClient apiClient) |
public TaskAttachmentApi()
public TaskAttachmentApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call addAttachmentCall(String id, String attachmentName, String attachmentDescription, String attachmentType, String url, File content, ApiCallback _callback) throws ApiException
id
- The id of the task to add the attachment to. (required)attachmentName
- The name of the attachment. (optional)attachmentDescription
- The description of the attachment. (optional)attachmentType
- The type of the attachment. (optional)url
- The url to the remote content of the attachment. (optional)content
- The content of the attachment. (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectpublic AttachmentDto addAttachment(String id, String attachmentName, String attachmentDescription, String attachmentType, String url, File content) throws ApiException
id
- The id of the task to add the attachment to. (required)attachmentName
- The name of the attachment. (optional)attachmentDescription
- The description of the attachment. (optional)attachmentType
- The type of the attachment. (optional)url
- The url to the remote content of the attachment. (optional)content
- The content of the attachment. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AttachmentDto> addAttachmentWithHttpInfo(String id, String attachmentName, String attachmentDescription, String attachmentType, String url, File content) throws ApiException
id
- The id of the task to add the attachment to. (required)attachmentName
- The name of the attachment. (optional)attachmentDescription
- The description of the attachment. (optional)attachmentType
- The type of the attachment. (optional)url
- The url to the remote content of the attachment. (optional)content
- The content of the attachment. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call addAttachmentAsync(String id, String attachmentName, String attachmentDescription, String attachmentType, String url, File content, ApiCallback<AttachmentDto> _callback) throws ApiException
id
- The id of the task to add the attachment to. (required)attachmentName
- The name of the attachment. (optional)attachmentDescription
- The description of the attachment. (optional)attachmentType
- The type of the attachment. (optional)url
- The url to the remote content of the attachment. (optional)content
- The content of the attachment. (optional)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call deleteAttachmentCall(String id, String attachmentId, ApiCallback _callback) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be removed. (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectpublic void deleteAttachment(String id, String attachmentId) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be removed. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteAttachmentWithHttpInfo(String id, String attachmentId) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be removed. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deleteAttachmentAsync(String id, String attachmentId, ApiCallback<Void> _callback) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be removed. (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call getAttachmentCall(String id, String attachmentId, ApiCallback _callback) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be retrieved. (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectpublic AttachmentDto getAttachment(String id, String attachmentId) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be retrieved. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AttachmentDto> getAttachmentWithHttpInfo(String id, String attachmentId) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be retrieved. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getAttachmentAsync(String id, String attachmentId, ApiCallback<AttachmentDto> _callback) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be retrieved. (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call getAttachmentDataCall(String id, String attachmentId, ApiCallback _callback) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be retrieved. (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectpublic File getAttachmentData(String id, String attachmentId) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be retrieved. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> getAttachmentDataWithHttpInfo(String id, String attachmentId) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be retrieved. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getAttachmentDataAsync(String id, String attachmentId, ApiCallback<File> _callback) throws ApiException
id
- The id of the task. (required)attachmentId
- The id of the attachment to be retrieved. (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call getAttachmentsCall(String id, ApiCallback _callback) throws ApiException
id
- The id of the task to retrieve the attachments for. (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectpublic List<AttachmentDto> getAttachments(String id) throws ApiException
id
- The id of the task to retrieve the attachments for. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<AttachmentDto>> getAttachmentsWithHttpInfo(String id) throws ApiException
id
- The id of the task to retrieve the attachments for. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getAttachmentsAsync(String id, ApiCallback<List<AttachmentDto>> _callback) throws ApiException
id
- The id of the task to retrieve the attachments for. (required)_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 © 2022. All rights reserved.