Skip to content

Commit b7ac7ee

Browse files
committed
0.0.14 add includeUserInfo flag and fixes status type
1 parent 2ccdd7b commit b7ac7ee

20 files changed

+65
-157
lines changed

client/.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ docs/HeaderState.md
122122
docs/HiddenApi.md
123123
docs/IgnoredResponse.md
124124
docs/ImageContentProfanityLevel.md
125-
docs/ImportedAPIStatus.md
126125
docs/ImportedAPIStatusFAILED.md
127126
docs/ImportedAPIStatusSUCCESS.md
128127
docs/LiveEvent.md
@@ -348,7 +347,6 @@ src/main/java/com/fastcomments/model/GifRating.java
348347
src/main/java/com/fastcomments/model/HeaderState.java
349348
src/main/java/com/fastcomments/model/IgnoredResponse.java
350349
src/main/java/com/fastcomments/model/ImageContentProfanityLevel.java
351-
src/main/java/com/fastcomments/model/ImportedAPIStatus.java
352350
src/main/java/com/fastcomments/model/ImportedAPIStatusFAILED.java
353351
src/main/java/com/fastcomments/model/ImportedAPIStatusSUCCESS.java
354352
src/main/java/com/fastcomments/model/LiveEvent.java
@@ -548,7 +546,6 @@ src/test/java/com/fastcomments/model/IgnoredResponseTest.java
548546
src/test/java/com/fastcomments/model/ImageContentProfanityLevelTest.java
549547
src/test/java/com/fastcomments/model/ImportedAPIStatusFAILEDTest.java
550548
src/test/java/com/fastcomments/model/ImportedAPIStatusSUCCESSTest.java
551-
src/test/java/com/fastcomments/model/ImportedAPIStatusTest.java
552549
src/test/java/com/fastcomments/model/LiveEventExtraInfoTest.java
553550
src/test/java/com/fastcomments/model/LiveEventTest.java
554551
src/test/java/com/fastcomments/model/LiveEventTypeTest.java

client/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.fastcomments</groupId>
4242
<artifactId>client</artifactId>
43-
<version>0.0.13</version>
43+
<version>0.0.14</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.fastcomments:client:0.0.13"
59+
implementation "com.fastcomments:client:0.0.14"
6060
}
6161
```
6262

@@ -70,7 +70,7 @@ mvn clean package
7070

7171
Then manually install the following JARs:
7272

73-
* `target/client-0.0.13.jar`
73+
* `target/client-0.0.14.jar`
7474
* `target/lib/*.jar`
7575

7676
## Getting Started
@@ -308,7 +308,6 @@ Class | Method | HTTP request | Description
308308
- [HeaderState](docs/HeaderState.md)
309309
- [IgnoredResponse](docs/IgnoredResponse.md)
310310
- [ImageContentProfanityLevel](docs/ImageContentProfanityLevel.md)
311-
- [ImportedAPIStatus](docs/ImportedAPIStatus.md)
312311
- [ImportedAPIStatusFAILED](docs/ImportedAPIStatusFAILED.md)
313312
- [ImportedAPIStatusSUCCESS](docs/ImportedAPIStatusSUCCESS.md)
314313
- [LiveEvent](docs/LiveEvent.md)

client/api/openapi.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,13 @@ paths:
598598
schema:
599599
type: boolean
600600
style: form
601+
- explode: true
602+
in: query
603+
name: includeUserInfo
604+
required: false
605+
schema:
606+
type: boolean
607+
style: form
601608
responses:
602609
"200":
603610
content:
@@ -4148,11 +4155,6 @@ components:
41484155
required:
41494156
- status
41504157
type: object
4151-
ImportedAPIStatus:
4152-
enum:
4153-
- success
4154-
- failed
4155-
type: string
41564158
FeedPostMediaItemAsset:
41574159
additionalProperties: false
41584160
example:
@@ -4363,7 +4365,7 @@ components:
43634365
additionalProperties: false
43644366
properties:
43654367
status:
4366-
$ref: '#/components/schemas/ImportedAPIStatus'
4368+
$ref: '#/components/schemas/ImportedAPIStatus.SUCCESS'
43674369
feedPosts:
43684370
items:
43694371
$ref: '#/components/schemas/FeedPost'

client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.fastcomments'
7-
version = '0.0.13'
7+
version = '0.0.14'
88

99
buildscript {
1010
repositories {

client/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.fastcomments",
44
name := "client",
5-
version := "0.0.13",
5+
version := "0.0.14",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

client/docs/GetPublicFeedPostsResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
|**status** | **ImportedAPIStatus** | | |
10+
|**status** | **ImportedAPIStatusSUCCESS** | | |
1111
|**feedPosts** | [**List&lt;FeedPost&gt;**](FeedPost.md) | | |
1212
|**user** | [**UserSessionInfo**](UserSessionInfo.md) | | |
1313

client/docs/PublicApi.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ No authorization required
950950

951951
<a id="getFeedPostsPublic"></a>
952952
# **getFeedPostsPublic**
953-
> GetFeedPostsPublic200Response getFeedPostsPublic(tenantId).afterId(afterId).limit(limit).tags(tags).sso(sso).isCrawler(isCrawler).execute();
953+
> GetFeedPostsPublic200Response getFeedPostsPublic(tenantId).afterId(afterId).limit(limit).tags(tags).sso(sso).isCrawler(isCrawler).includeUserInfo(includeUserInfo).execute();
954954
955955

956956

@@ -977,13 +977,15 @@ public class Example {
977977
List<String> tags = Arrays.asList(); // List<String> |
978978
String sso = "sso_example"; // String |
979979
Boolean isCrawler = true; // Boolean |
980+
Boolean includeUserInfo = true; // Boolean |
980981
try {
981982
GetFeedPostsPublic200Response result = apiInstance.getFeedPostsPublic(tenantId)
982983
.afterId(afterId)
983984
.limit(limit)
984985
.tags(tags)
985986
.sso(sso)
986987
.isCrawler(isCrawler)
988+
.includeUserInfo(includeUserInfo)
987989
.execute();
988990
System.out.println(result);
989991
} catch (ApiException e) {
@@ -1007,6 +1009,7 @@ public class Example {
10071009
| **tags** | [**List&lt;String&gt;**](String.md)| | [optional] |
10081010
| **sso** | **String**| | [optional] |
10091011
| **isCrawler** | **Boolean**| | [optional] |
1012+
| **includeUserInfo** | **Boolean**| | [optional] |
10101013

10111014
### Return type
10121015

client/docs/PublicFeedPostsResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
|**status** | **ImportedAPIStatus** | | |
10+
|**status** | **ImportedAPIStatusSUCCESS** | | |
1111
|**feedPosts** | [**List&lt;FeedPost&gt;**](FeedPost.md) | | |
1212
|**user** | [**UserSessionInfo**](UserSessionInfo.md) | | |
1313
|**urlIdWS** | **String** | | [optional] |

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>client</artifactId>
66
<packaging>jar</packaging>
77
<name>client</name>
8-
<version>0.0.13</version>
8+
<version>0.0.14</version>
99
<url>https://fastcomments.com</url>
1010
<description>FastComments API Client - A SDK for interacting with the FastComments API</description>
1111
<scm>

client/src/main/java/com/fastcomments/api/PublicApi.java

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ public okhttp3.Call executeAsync(final ApiCallback<GetEventLog200Response> _call
28722872
public APIgetEventLogRequest getEventLog(String tenantId, String urlId, String userIdWS, Long startTime, Long endTime) {
28732873
return new APIgetEventLogRequest(tenantId, urlId, userIdWS, startTime, endTime);
28742874
}
2875-
private okhttp3.Call getFeedPostsPublicCall(String tenantId, String afterId, Integer limit, List<String> tags, String sso, Boolean isCrawler, final ApiCallback _callback) throws ApiException {
2875+
private okhttp3.Call getFeedPostsPublicCall(String tenantId, String afterId, Integer limit, List<String> tags, String sso, Boolean isCrawler, Boolean includeUserInfo, final ApiCallback _callback) throws ApiException {
28762876
String basePath = null;
28772877
// Operation Servers
28782878
String[] localBasePaths = new String[] { };
@@ -2918,6 +2918,10 @@ private okhttp3.Call getFeedPostsPublicCall(String tenantId, String afterId, Int
29182918
localVarQueryParams.addAll(localVarApiClient.parameterToPair("isCrawler", isCrawler));
29192919
}
29202920

2921+
if (includeUserInfo != null) {
2922+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeUserInfo", includeUserInfo));
2923+
}
2924+
29212925
final String[] localVarAccepts = {
29222926
"application/json"
29232927
};
@@ -2938,26 +2942,26 @@ private okhttp3.Call getFeedPostsPublicCall(String tenantId, String afterId, Int
29382942
}
29392943

29402944
@SuppressWarnings("rawtypes")
2941-
private okhttp3.Call getFeedPostsPublicValidateBeforeCall(String tenantId, String afterId, Integer limit, List<String> tags, String sso, Boolean isCrawler, final ApiCallback _callback) throws ApiException {
2945+
private okhttp3.Call getFeedPostsPublicValidateBeforeCall(String tenantId, String afterId, Integer limit, List<String> tags, String sso, Boolean isCrawler, Boolean includeUserInfo, final ApiCallback _callback) throws ApiException {
29422946
// verify the required parameter 'tenantId' is set
29432947
if (tenantId == null) {
29442948
throw new ApiException("Missing the required parameter 'tenantId' when calling getFeedPostsPublic(Async)");
29452949
}
29462950

2947-
return getFeedPostsPublicCall(tenantId, afterId, limit, tags, sso, isCrawler, _callback);
2951+
return getFeedPostsPublicCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback);
29482952

29492953
}
29502954

29512955

2952-
private ApiResponse<GetFeedPostsPublic200Response> getFeedPostsPublicWithHttpInfo(String tenantId, String afterId, Integer limit, List<String> tags, String sso, Boolean isCrawler) throws ApiException {
2953-
okhttp3.Call localVarCall = getFeedPostsPublicValidateBeforeCall(tenantId, afterId, limit, tags, sso, isCrawler, null);
2956+
private ApiResponse<GetFeedPostsPublic200Response> getFeedPostsPublicWithHttpInfo(String tenantId, String afterId, Integer limit, List<String> tags, String sso, Boolean isCrawler, Boolean includeUserInfo) throws ApiException {
2957+
okhttp3.Call localVarCall = getFeedPostsPublicValidateBeforeCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, null);
29542958
Type localVarReturnType = new TypeToken<GetFeedPostsPublic200Response>(){}.getType();
29552959
return localVarApiClient.execute(localVarCall, localVarReturnType);
29562960
}
29572961

2958-
private okhttp3.Call getFeedPostsPublicAsync(String tenantId, String afterId, Integer limit, List<String> tags, String sso, Boolean isCrawler, final ApiCallback<GetFeedPostsPublic200Response> _callback) throws ApiException {
2962+
private okhttp3.Call getFeedPostsPublicAsync(String tenantId, String afterId, Integer limit, List<String> tags, String sso, Boolean isCrawler, Boolean includeUserInfo, final ApiCallback<GetFeedPostsPublic200Response> _callback) throws ApiException {
29592963

2960-
okhttp3.Call localVarCall = getFeedPostsPublicValidateBeforeCall(tenantId, afterId, limit, tags, sso, isCrawler, _callback);
2964+
okhttp3.Call localVarCall = getFeedPostsPublicValidateBeforeCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback);
29612965
Type localVarReturnType = new TypeToken<GetFeedPostsPublic200Response>(){}.getType();
29622966
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
29632967
return localVarCall;
@@ -2970,6 +2974,7 @@ public class APIgetFeedPostsPublicRequest {
29702974
private List<String> tags;
29712975
private String sso;
29722976
private Boolean isCrawler;
2977+
private Boolean includeUserInfo;
29732978

29742979
private APIgetFeedPostsPublicRequest(String tenantId) {
29752980
this.tenantId = tenantId;
@@ -3025,6 +3030,16 @@ public APIgetFeedPostsPublicRequest isCrawler(Boolean isCrawler) {
30253030
return this;
30263031
}
30273032

3033+
/**
3034+
* Set includeUserInfo
3035+
* @param includeUserInfo (optional)
3036+
* @return APIgetFeedPostsPublicRequest
3037+
*/
3038+
public APIgetFeedPostsPublicRequest includeUserInfo(Boolean includeUserInfo) {
3039+
this.includeUserInfo = includeUserInfo;
3040+
return this;
3041+
}
3042+
30283043
/**
30293044
* Build call for getFeedPostsPublic
30303045
* @param _callback ApiCallback API callback
@@ -3038,7 +3053,7 @@ public APIgetFeedPostsPublicRequest isCrawler(Boolean isCrawler) {
30383053
</table>
30393054
*/
30403055
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
3041-
return getFeedPostsPublicCall(tenantId, afterId, limit, tags, sso, isCrawler, _callback);
3056+
return getFeedPostsPublicCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback);
30423057
}
30433058

30443059
/**
@@ -3053,7 +3068,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
30533068
</table>
30543069
*/
30553070
public GetFeedPostsPublic200Response execute() throws ApiException {
3056-
ApiResponse<GetFeedPostsPublic200Response> localVarResp = getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler);
3071+
ApiResponse<GetFeedPostsPublic200Response> localVarResp = getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo);
30573072
return localVarResp.getData();
30583073
}
30593074

@@ -3069,7 +3084,7 @@ public GetFeedPostsPublic200Response execute() throws ApiException {
30693084
</table>
30703085
*/
30713086
public ApiResponse<GetFeedPostsPublic200Response> executeWithHttpInfo() throws ApiException {
3072-
return getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler);
3087+
return getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo);
30733088
}
30743089

30753090
/**
@@ -3085,7 +3100,7 @@ public ApiResponse<GetFeedPostsPublic200Response> executeWithHttpInfo() throws A
30853100
</table>
30863101
*/
30873102
public okhttp3.Call executeAsync(final ApiCallback<GetFeedPostsPublic200Response> _callback) throws ApiException {
3088-
return getFeedPostsPublicAsync(tenantId, afterId, limit, tags, sso, isCrawler, _callback);
3103+
return getFeedPostsPublicAsync(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback);
30893104
}
30903105
}
30913106

0 commit comments

Comments
 (0)