@@ -1478,6 +1478,7 @@ public okhttp3.Call getPrivateProfileAsync(@javax.annotation.Nonnull String user
14781478 /**
14791479 * Build call for getPublicProfile
14801480 * @param userId Must be a valid user ID. (required)
1481+ * @param withGroupsAndWorlds Include `groups`, `publicWorlds` and `totalPublicWorldsCount` in the response. (optional)
14811482 * @param _callback Callback for upload/download progress
14821483 * @return Call to execute
14831484 * @throws ApiException If fail to serialize the request body object
@@ -1489,7 +1490,7 @@ public okhttp3.Call getPrivateProfileAsync(@javax.annotation.Nonnull String user
14891490 <tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
14901491 </table>
14911492 */
1492- public okhttp3.Call getPublicProfileCall(@javax.annotation.Nonnull String userId, final ApiCallback _callback) throws ApiException {
1493+ public okhttp3 .Call getPublicProfileCall (@ javax .annotation .Nonnull String userId , @ javax . annotation . Nullable Boolean withGroupsAndWorlds , final ApiCallback _callback ) throws ApiException {
14931494 String basePath = null ;
14941495 // Operation Servers
14951496 String [] localBasePaths = new String [] { };
@@ -1515,6 +1516,10 @@ public okhttp3.Call getPublicProfileCall(@javax.annotation.Nonnull String userId
15151516 Map <String , String > localVarCookieParams = new HashMap <String , String >();
15161517 Map <String , Object > localVarFormParams = new HashMap <String , Object >();
15171518
1519+ if (withGroupsAndWorlds != null ) {
1520+ localVarQueryParams .addAll (localVarApiClient .parameterToPair ("withGroupsAndWorlds" , withGroupsAndWorlds ));
1521+ }
1522+
15181523 final String [] localVarAccepts = {
15191524 "application/json"
15201525 };
@@ -1535,20 +1540,21 @@ public okhttp3.Call getPublicProfileCall(@javax.annotation.Nonnull String userId
15351540 }
15361541
15371542 @ SuppressWarnings ("rawtypes" )
1538- private okhttp3.Call getPublicProfileValidateBeforeCall(@javax.annotation.Nonnull String userId, final ApiCallback _callback) throws ApiException {
1543+ private okhttp3 .Call getPublicProfileValidateBeforeCall (@ javax .annotation .Nonnull String userId , @ javax . annotation . Nullable Boolean withGroupsAndWorlds , final ApiCallback _callback ) throws ApiException {
15391544 // verify the required parameter 'userId' is set
15401545 if (userId == null ) {
15411546 throw new ApiException ("Missing the required parameter 'userId' when calling getPublicProfile(Async)" );
15421547 }
15431548
1544- return getPublicProfileCall(userId, _callback);
1549+ return getPublicProfileCall (userId , withGroupsAndWorlds , _callback );
15451550
15461551 }
15471552
15481553 /**
15491554 * Get Public Profile
15501555 * Get a user's public profile information.
15511556 * @param userId Must be a valid user ID. (required)
1557+ * @param withGroupsAndWorlds Include `groups`, `publicWorlds` and `totalPublicWorldsCount` in the response. (optional)
15521558 * @return PublicProfile
15531559 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
15541560 * @http.response.details
@@ -1559,15 +1565,16 @@ private okhttp3.Call getPublicProfileValidateBeforeCall(@javax.annotation.Nonnul
15591565 <tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
15601566 </table>
15611567 */
1562- public PublicProfile getPublicProfile(@javax.annotation.Nonnull String userId) throws ApiException {
1563- ApiResponse<PublicProfile> localVarResp = getPublicProfileWithHttpInfo(userId);
1568+ public PublicProfile getPublicProfile (@ javax .annotation .Nonnull String userId , @ javax . annotation . Nullable Boolean withGroupsAndWorlds ) throws ApiException {
1569+ ApiResponse <PublicProfile > localVarResp = getPublicProfileWithHttpInfo (userId , withGroupsAndWorlds );
15641570 return localVarResp .getData ();
15651571 }
15661572
15671573 /**
15681574 * Get Public Profile
15691575 * Get a user's public profile information.
15701576 * @param userId Must be a valid user ID. (required)
1577+ * @param withGroupsAndWorlds Include `groups`, `publicWorlds` and `totalPublicWorldsCount` in the response. (optional)
15711578 * @return ApiResponse<PublicProfile>
15721579 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
15731580 * @http.response.details
@@ -1578,8 +1585,8 @@ public PublicProfile getPublicProfile(@javax.annotation.Nonnull String userId) t
15781585 <tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
15791586 </table>
15801587 */
1581- public ApiResponse<PublicProfile> getPublicProfileWithHttpInfo(@javax.annotation.Nonnull String userId) throws ApiException {
1582- okhttp3.Call localVarCall = getPublicProfileValidateBeforeCall(userId, null);
1588+ public ApiResponse <PublicProfile > getPublicProfileWithHttpInfo (@ javax .annotation .Nonnull String userId , @ javax . annotation . Nullable Boolean withGroupsAndWorlds ) throws ApiException {
1589+ okhttp3 .Call localVarCall = getPublicProfileValidateBeforeCall (userId , withGroupsAndWorlds , null );
15831590 Type localVarReturnType = new TypeToken <PublicProfile >(){}.getType ();
15841591 return localVarApiClient .execute (localVarCall , localVarReturnType );
15851592 }
@@ -1588,6 +1595,7 @@ public ApiResponse<PublicProfile> getPublicProfileWithHttpInfo(@javax.annotation
15881595 * Get Public Profile (asynchronously)
15891596 * Get a user's public profile information.
15901597 * @param userId Must be a valid user ID. (required)
1598+ * @param withGroupsAndWorlds Include `groups`, `publicWorlds` and `totalPublicWorldsCount` in the response. (optional)
15911599 * @param _callback The callback to be executed when the API call finishes
15921600 * @return The request call
15931601 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -1599,9 +1607,9 @@ public ApiResponse<PublicProfile> getPublicProfileWithHttpInfo(@javax.annotation
15991607 <tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
16001608 </table>
16011609 */
1602- public okhttp3.Call getPublicProfileAsync(@javax.annotation.Nonnull String userId, final ApiCallback<PublicProfile> _callback) throws ApiException {
1610+ public okhttp3 .Call getPublicProfileAsync (@ javax .annotation .Nonnull String userId , @ javax . annotation . Nullable Boolean withGroupsAndWorlds , final ApiCallback <PublicProfile > _callback ) throws ApiException {
16031611
1604- okhttp3.Call localVarCall = getPublicProfileValidateBeforeCall(userId, _callback);
1612+ okhttp3 .Call localVarCall = getPublicProfileValidateBeforeCall (userId , withGroupsAndWorlds , _callback );
16051613 Type localVarReturnType = new TypeToken <PublicProfile >(){}.getType ();
16061614 localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
16071615 return localVarCall ;
0 commit comments