From f343294411365fec458f57b8df31b1368a45a879 Mon Sep 17 00:00:00 2001 From: gitnexbot Date: Wed, 31 Aug 2022 22:01:44 +0000 Subject: [PATCH] Synchronizing API and documentation updates --- docs/UserApi.md | 8 ++++++-- src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/UserApi.md b/docs/UserApi.md index f9da797..b74e8a3 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -2424,7 +2424,7 @@ Name | Type | Description | Notes # **userCurrentTrackedTimes** -> List<TrackedTime> userCurrentTrackedTimes(since, before) +> List<TrackedTime> userCurrentTrackedTimes(page, limit, since, before) List the current user's tracked times @@ -2480,10 +2480,12 @@ Token.setApiKey("YOUR API KEY"); //Token.setApiKeyPrefix("Token"); UserApi apiInstance = new UserApi(); +Integer page = 56; // Integer | page number of results to return (1-based) +Integer limit = 56; // Integer | page size of results Date since = new Date(); // Date | Only show times updated after the given time. This is a timestamp in RFC 3339 format Date before = new Date(); // Date | Only show times updated before the given time. This is a timestamp in RFC 3339 format try { - List result = apiInstance.userCurrentTrackedTimes(since, before); + List result = apiInstance.userCurrentTrackedTimes(page, limit, since, before); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#userCurrentTrackedTimes"); @@ -2495,6 +2497,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **page** | **Integer**| page number of results to return (1-based) | [optional] + **limit** | **Integer**| page size of results | [optional] **since** | **Date**| Only show times updated after the given time. This is a timestamp in RFC 3339 format | [optional] **before** | **Date**| Only show times updated before the given time. This is a timestamp in RFC 3339 format | [optional] diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java index 1f2b0e9..009f754 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java @@ -309,6 +309,8 @@ public interface UserApi { /** * List the current user's tracked times * + * @param page page number of results to return (1-based) (optional) + * @param limit page size of results (optional) * @param since Only show times updated after the given time. This is a timestamp in RFC 3339 * format (optional) * @param before Only show times updated before the given time. This is a timestamp in RFC 3339 @@ -317,7 +319,10 @@ public interface UserApi { */ @GET("user/times") Call> userCurrentTrackedTimes( - @retrofit2.http.Query("since") Date since, @retrofit2.http.Query("before") Date before); + @retrofit2.http.Query("page") Integer page, + @retrofit2.http.Query("limit") Integer limit, + @retrofit2.http.Query("since") Date since, + @retrofit2.http.Query("before") Date before); /** * delete an access token