Package io.gitea.api
Class NotificationApi
java.lang.Object
io.gitea.api.NotificationApi
public class NotificationApi
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description NotificationApi()NotificationApi(ApiClient apiClient) -
Method Summary
Modifier and Type Method Description ApiClientgetApiClient()java.util.List<NotificationThread>notifyGetList(java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit)List users's notification threadscom.squareup.okhttp.CallnotifyGetListAsync(java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<NotificationThread>> callback)List users's notification threads (asynchronously)com.squareup.okhttp.CallnotifyGetListCall(java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for notifyGetListApiResponse<java.util.List<NotificationThread>>notifyGetListWithHttpInfo(java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit)List users's notification threadsjava.util.List<NotificationThread>notifyGetRepoList(java.lang.String owner, java.lang.String repo, java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit)List users's notification threads on a specific repocom.squareup.okhttp.CallnotifyGetRepoListAsync(java.lang.String owner, java.lang.String repo, java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<NotificationThread>> callback)List users's notification threads on a specific repo (asynchronously)com.squareup.okhttp.CallnotifyGetRepoListCall(java.lang.String owner, java.lang.String repo, java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for notifyGetRepoListApiResponse<java.util.List<NotificationThread>>notifyGetRepoListWithHttpInfo(java.lang.String owner, java.lang.String repo, java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit)List users's notification threads on a specific repoNotificationThreadnotifyGetThread(java.lang.String id)Get notification thread by IDcom.squareup.okhttp.CallnotifyGetThreadAsync(java.lang.String id, ApiCallback<NotificationThread> callback)Get notification thread by ID (asynchronously)com.squareup.okhttp.CallnotifyGetThreadCall(java.lang.String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for notifyGetThreadApiResponse<NotificationThread>notifyGetThreadWithHttpInfo(java.lang.String id)Get notification thread by IDNotificationCountnotifyNewAvailable()Check if unread notifications existcom.squareup.okhttp.CallnotifyNewAvailableAsync(ApiCallback<NotificationCount> callback)Check if unread notifications exist (asynchronously)com.squareup.okhttp.CallnotifyNewAvailableCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for notifyNewAvailableApiResponse<NotificationCount>notifyNewAvailableWithHttpInfo()Check if unread notifications existvoidnotifyReadList(org.threeten.bp.OffsetDateTime lastReadAt, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus)Mark notification threads as read, pinned or unreadcom.squareup.okhttp.CallnotifyReadListAsync(org.threeten.bp.OffsetDateTime lastReadAt, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, ApiCallback<java.lang.Void> callback)Mark notification threads as read, pinned or unread (asynchronously)com.squareup.okhttp.CallnotifyReadListCall(org.threeten.bp.OffsetDateTime lastReadAt, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for notifyReadListApiResponse<java.lang.Void>notifyReadListWithHttpInfo(org.threeten.bp.OffsetDateTime lastReadAt, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus)Mark notification threads as read, pinned or unreadvoidnotifyReadRepoList(java.lang.String owner, java.lang.String repo, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, org.threeten.bp.OffsetDateTime lastReadAt)Mark notification threads as read, pinned or unread on a specific repocom.squareup.okhttp.CallnotifyReadRepoListAsync(java.lang.String owner, java.lang.String repo, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, org.threeten.bp.OffsetDateTime lastReadAt, ApiCallback<java.lang.Void> callback)Mark notification threads as read, pinned or unread on a specific repo (asynchronously)com.squareup.okhttp.CallnotifyReadRepoListCall(java.lang.String owner, java.lang.String repo, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, org.threeten.bp.OffsetDateTime lastReadAt, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for notifyReadRepoListApiResponse<java.lang.Void>notifyReadRepoListWithHttpInfo(java.lang.String owner, java.lang.String repo, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, org.threeten.bp.OffsetDateTime lastReadAt)Mark notification threads as read, pinned or unread on a specific repovoidnotifyReadThread(java.lang.String id, java.lang.String toStatus)Mark notification thread as read by IDcom.squareup.okhttp.CallnotifyReadThreadAsync(java.lang.String id, java.lang.String toStatus, ApiCallback<java.lang.Void> callback)Mark notification thread as read by ID (asynchronously)com.squareup.okhttp.CallnotifyReadThreadCall(java.lang.String id, java.lang.String toStatus, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for notifyReadThreadApiResponse<java.lang.Void>notifyReadThreadWithHttpInfo(java.lang.String id, java.lang.String toStatus)Mark notification thread as read by IDvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
NotificationApi
public NotificationApi() -
NotificationApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
notifyGetListCall
public com.squareup.okhttp.Call notifyGetListCall(java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for notifyGetList- Parameters:
all- If true, show notifications marked as read. Default value is false (optional)statusTypes- Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. (optional)subjectType- filter notifications by subject type (optional)since- Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)before- Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)page- page number of results to return (1-based) (optional)limit- page size of results (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
notifyGetList
public java.util.List<NotificationThread> notifyGetList(java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList users's notification threads- Parameters:
all- If true, show notifications marked as read. Default value is false (optional)statusTypes- Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. (optional)subjectType- filter notifications by subject type (optional)since- Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)before- Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- List<NotificationThread>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyGetListWithHttpInfo
public ApiResponse<java.util.List<NotificationThread>> notifyGetListWithHttpInfo(java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList users's notification threads- Parameters:
all- If true, show notifications marked as read. Default value is false (optional)statusTypes- Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. (optional)subjectType- filter notifications by subject type (optional)since- Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)before- Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- ApiResponse<List<NotificationThread>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyGetListAsync
public com.squareup.okhttp.Call notifyGetListAsync(java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<NotificationThread>> callback) throws ApiExceptionList users's notification threads (asynchronously)- Parameters:
all- If true, show notifications marked as read. Default value is false (optional)statusTypes- Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. (optional)subjectType- filter notifications by subject type (optional)since- Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)before- Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)page- page number of results to return (1-based) (optional)limit- page size of results (optional)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
notifyGetRepoListCall
public com.squareup.okhttp.Call notifyGetRepoListCall(java.lang.String owner, java.lang.String repo, java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for notifyGetRepoList- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)all- If true, show notifications marked as read. Default value is false (optional)statusTypes- Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned (optional)subjectType- filter notifications by subject type (optional)since- Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)before- Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)page- page number of results to return (1-based) (optional)limit- page size of results (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
notifyGetRepoList
public java.util.List<NotificationThread> notifyGetRepoList(java.lang.String owner, java.lang.String repo, java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList users's notification threads on a specific repo- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)all- If true, show notifications marked as read. Default value is false (optional)statusTypes- Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned (optional)subjectType- filter notifications by subject type (optional)since- Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)before- Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- List<NotificationThread>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyGetRepoListWithHttpInfo
public ApiResponse<java.util.List<NotificationThread>> notifyGetRepoListWithHttpInfo(java.lang.String owner, java.lang.String repo, java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList users's notification threads on a specific repo- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)all- If true, show notifications marked as read. Default value is false (optional)statusTypes- Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned (optional)subjectType- filter notifications by subject type (optional)since- Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)before- Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- ApiResponse<List<NotificationThread>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyGetRepoListAsync
public com.squareup.okhttp.Call notifyGetRepoListAsync(java.lang.String owner, java.lang.String repo, java.lang.Boolean all, java.util.List<java.lang.String> statusTypes, java.util.List<java.lang.String> subjectType, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<NotificationThread>> callback) throws ApiExceptionList users's notification threads on a specific repo (asynchronously)- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)all- If true, show notifications marked as read. Default value is false (optional)statusTypes- Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned (optional)subjectType- filter notifications by subject type (optional)since- Only show notifications updated after the given time. This is a timestamp in RFC 3339 format (optional)before- Only show notifications updated before the given time. This is a timestamp in RFC 3339 format (optional)page- page number of results to return (1-based) (optional)limit- page size of results (optional)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
notifyGetThreadCall
public com.squareup.okhttp.Call notifyGetThreadCall(java.lang.String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for notifyGetThread- Parameters:
id- id of notification thread (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
notifyGetThread
Get notification thread by ID- Parameters:
id- id of notification thread (required)- Returns:
- NotificationThread
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyGetThreadWithHttpInfo
public ApiResponse<NotificationThread> notifyGetThreadWithHttpInfo(java.lang.String id) throws ApiExceptionGet notification thread by ID- Parameters:
id- id of notification thread (required)- Returns:
- ApiResponse<NotificationThread>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyGetThreadAsync
public com.squareup.okhttp.Call notifyGetThreadAsync(java.lang.String id, ApiCallback<NotificationThread> callback) throws ApiExceptionGet notification thread by ID (asynchronously)- Parameters:
id- id of notification thread (required)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
notifyNewAvailableCall
public com.squareup.okhttp.Call notifyNewAvailableCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for notifyNewAvailable- Parameters:
progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
notifyNewAvailable
Check if unread notifications exist- Returns:
- NotificationCount
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyNewAvailableWithHttpInfo
Check if unread notifications exist- Returns:
- ApiResponse<NotificationCount>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyNewAvailableAsync
public com.squareup.okhttp.Call notifyNewAvailableAsync(ApiCallback<NotificationCount> callback) throws ApiExceptionCheck if unread notifications exist (asynchronously)- Parameters:
callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
notifyReadListCall
public com.squareup.okhttp.Call notifyReadListCall(org.threeten.bp.OffsetDateTime lastReadAt, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for notifyReadList- Parameters:
lastReadAt- Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)all- If true, mark all notifications on this repo. Default value is false (optional)statusTypes- Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)toStatus- Status to mark notifications as, Defaults to read. (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
notifyReadList
public void notifyReadList(org.threeten.bp.OffsetDateTime lastReadAt, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus) throws ApiExceptionMark notification threads as read, pinned or unread- Parameters:
lastReadAt- Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)all- If true, mark all notifications on this repo. Default value is false (optional)statusTypes- Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)toStatus- Status to mark notifications as, Defaults to read. (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyReadListWithHttpInfo
public ApiResponse<java.lang.Void> notifyReadListWithHttpInfo(org.threeten.bp.OffsetDateTime lastReadAt, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus) throws ApiExceptionMark notification threads as read, pinned or unread- Parameters:
lastReadAt- Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)all- If true, mark all notifications on this repo. Default value is false (optional)statusTypes- Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)toStatus- Status to mark notifications as, Defaults to read. (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyReadListAsync
public com.squareup.okhttp.Call notifyReadListAsync(org.threeten.bp.OffsetDateTime lastReadAt, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, ApiCallback<java.lang.Void> callback) throws ApiExceptionMark notification threads as read, pinned or unread (asynchronously)- Parameters:
lastReadAt- Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)all- If true, mark all notifications on this repo. Default value is false (optional)statusTypes- Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)toStatus- Status to mark notifications as, Defaults to read. (optional)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
notifyReadRepoListCall
public com.squareup.okhttp.Call notifyReadRepoListCall(java.lang.String owner, java.lang.String repo, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, org.threeten.bp.OffsetDateTime lastReadAt, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for notifyReadRepoList- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)all- If true, mark all notifications on this repo. Default value is false (optional)statusTypes- Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)toStatus- Status to mark notifications as. Defaults to read. (optional)lastReadAt- Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
notifyReadRepoList
public void notifyReadRepoList(java.lang.String owner, java.lang.String repo, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, org.threeten.bp.OffsetDateTime lastReadAt) throws ApiExceptionMark notification threads as read, pinned or unread on a specific repo- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)all- If true, mark all notifications on this repo. Default value is false (optional)statusTypes- Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)toStatus- Status to mark notifications as. Defaults to read. (optional)lastReadAt- Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyReadRepoListWithHttpInfo
public ApiResponse<java.lang.Void> notifyReadRepoListWithHttpInfo(java.lang.String owner, java.lang.String repo, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, org.threeten.bp.OffsetDateTime lastReadAt) throws ApiExceptionMark notification threads as read, pinned or unread on a specific repo- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)all- If true, mark all notifications on this repo. Default value is false (optional)statusTypes- Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)toStatus- Status to mark notifications as. Defaults to read. (optional)lastReadAt- Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyReadRepoListAsync
public com.squareup.okhttp.Call notifyReadRepoListAsync(java.lang.String owner, java.lang.String repo, java.lang.String all, java.util.List<java.lang.String> statusTypes, java.lang.String toStatus, org.threeten.bp.OffsetDateTime lastReadAt, ApiCallback<java.lang.Void> callback) throws ApiExceptionMark notification threads as read, pinned or unread on a specific repo (asynchronously)- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)all- If true, mark all notifications on this repo. Default value is false (optional)statusTypes- Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. (optional)toStatus- Status to mark notifications as. Defaults to read. (optional)lastReadAt- Describes the last point that notifications were checked. Anything updated since this time will not be updated. (optional)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
notifyReadThreadCall
public com.squareup.okhttp.Call notifyReadThreadCall(java.lang.String id, java.lang.String toStatus, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for notifyReadThread- Parameters:
id- id of notification thread (required)toStatus- Status to mark notifications as (optional, default to read)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
notifyReadThread
Mark notification thread as read by ID- Parameters:
id- id of notification thread (required)toStatus- Status to mark notifications as (optional, default to read)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyReadThreadWithHttpInfo
public ApiResponse<java.lang.Void> notifyReadThreadWithHttpInfo(java.lang.String id, java.lang.String toStatus) throws ApiExceptionMark notification thread as read by ID- Parameters:
id- id of notification thread (required)toStatus- Status to mark notifications as (optional, default to read)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
notifyReadThreadAsync
public com.squareup.okhttp.Call notifyReadThreadAsync(java.lang.String id, java.lang.String toStatus, ApiCallback<java.lang.Void> callback) throws ApiExceptionMark notification thread as read by ID (asynchronously)- Parameters:
id- id of notification thread (required)toStatus- Status to mark notifications as (optional, default to read)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-