From 40a24f678b563b162f31892e360c10f5ef878541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E6=99=A8?= Date: Wed, 1 Mar 2023 20:16:05 +0800 Subject: [PATCH] feat: usercontroller & gameHang --- README.md | 14 +- pom.xml | 2 +- .../yjopenapi/client/api/DispatchApi.java | 456 +++++++++++++++ .../client/api/UsercontrollerApi.java | 533 ++++++++++++++++++ .../client/model/CancelGameHangForms.java | 100 ++++ .../client/model/CancelGameHangResult.java | 101 ++++ .../model/CancelGameHangResultModel.java | 144 +++++ .../client/model/ListGameServerIpForms.java | 100 ++++ .../client/model/ListGameServerIpResult.java | 145 +++++ .../model/ListGameServerIpResultModel.java | 154 +++++ .../client/model/QueryGameHangForms.java | 100 ++++ .../client/model/QueryGameHangResult.java | 101 ++++ .../model/QueryGameHangResultModel.java | 210 +++++++ .../client/model/SetGameAliveForms.java | 122 ++++ .../client/model/SetGameAliveResult.java | 101 ++++ .../client/model/SetGameAliveResultModel.java | 144 +++++ .../client/model/SetGameHangForms.java | 122 ++++ .../client/model/SetGameHangResult.java | 101 ++++ .../client/model/SetGameHangResultModel.java | 188 ++++++ .../UsercontollerDeleteGameArchiveResult.java | 145 +++++ ...contollerDeleteGameArchiveResultModel.java | 78 +++ ...llerGetGameTrialSurplusDurationResult.java | 145 +++++ ...etGameTrialSurplusDurationResultModel.java | 89 +++ ...rationResultModelTrialPolicyResponses.java | 100 ++++ ...rcontollerListLatestGameArchiveResult.java | 145 +++++ ...ollerListLatestGameArchiveResultModel.java | 177 ++++++ ...ListLatestGameArchiveResultModelItems.java | 166 ++++++ ...UsercontollerRestoreGameArchiveResult.java | 145 +++++ ...ontollerRestoreGameArchiveResultModel.java | 78 +++ ...ollerUpdateGameArchiveTagStatusResult.java | 145 +++++ ...UpdateGameArchiveTagStatusResultModel.java | 78 +++ .../UsercontrollerDeleteGameArchiveForms.java | 122 ++++ ...ollerGetGameTrialSurplusDurationForms.java | 122 ++++ ...rcontrollerListLatestGameArchiveForms.java | 166 ++++++ ...UsercontrollerRestoreGameArchiveForms.java | 122 ++++ ...rollerUpdateGameArchiveTagStatusForms.java | 144 +++++ 36 files changed, 5102 insertions(+), 3 deletions(-) create mode 100644 src/main/java/com/alibaba/yjopenapi/client/api/UsercontrollerApi.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerDeleteGameArchiveResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerDeleteGameArchiveResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResultModelItems.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerRestoreGameArchiveResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerRestoreGameArchiveResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerUpdateGameArchiveTagStatusResult.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerUpdateGameArchiveTagStatusResultModel.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerDeleteGameArchiveForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerGetGameTrialSurplusDurationForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerListLatestGameArchiveForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerRestoreGameArchiveForms.java create mode 100644 src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerUpdateGameArchiveTagStatusForms.java diff --git a/README.md b/README.md index a0ca9645a..2391bf837 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Add this dependency to your project's POM: com.alibaba alibabacloud-yjopenapi-java-client - 1.0.20230131 + 1.0.20230301 or @@ -26,7 +26,7 @@ or com.alibaba alibabacloud-yjopenapi-java-client - 1.0.20230131 + 1.0.20230301 shaded @@ -89,10 +89,15 @@ try { | *ConsoleAdminApi* | **submitDeployment** | *submitDeploymentForms* | *ConsoleAdminSubmitDeploymentResult* | 提交游戏版本的部署请求 | | *ConsoleAdminApi* | **uploadGameVersionByDownload** | *uploadGameVersionByDownloadForms* | *ConsoleAdminUploadGameVersionByDownloadResult* | 一键上传:文件上传接口,用远程下载的方式生成新版本 | | *DispatchApi* | **batchStopGame** | *batchStopGameForms* | *BatchStopGameResult* | 游戏下全量踢下线,异步接口 | + | *DispatchApi* | **cancelGameHang** | *cancelGameHangForms* | *CancelGameHangResult* | 取消游戏挂机 | | *DispatchApi* | **getGameConcurrency** | *getGameConcurrencyForms* | *GetGameConcurrencyResult* | 调用GetGameConcurrency获取游戏当前并发数 | | *DispatchApi* | **getStock** | *getStockForms* | *GetStockResult* | 调用GetStock获取游戏当前库存 | | *DispatchApi* | **getStopGameToken** | *getStopGameTokenForms* | *GetStopGameTokenResult* | 全量踢下线获取token | + | *DispatchApi* | **listGameServerIp** | *listGameServerIpForms* | *ListGameServerIpResult* | 获取自己租户下的游戏服务器ip列表 | + | *DispatchApi* | **queryGameHang** | *queryGameHangForms* | *QueryGameHangResult* | 查询游戏挂机状态 | | *DispatchApi* | **querySessionStatus** | *querySessionStatusForms* | *QuerySessionStatusResult* | 查询会话当前状态 | + | *DispatchApi* | **setGameAlive** | *setGameAliveForms* | *SetGameAliveResult* | 设置游戏可运行时长 | + | *DispatchApi* | **setGameHang** | *setGameHangForms* | *SetGameHangResult* | 设置游戏挂机 | | *DispatchApi* | **stopGame** | *stopGameForms* | *StopGameResult* | 服务端发起,停止某个用户的某个游戏的某个会话 | | *DispatchApi* | **tryToGetSlot** | *tryToGetSlotForms* | *TryToGetSlotResult* | 为用户调度分配游戏容器,容器一旦分配成功会被锁住,一段时间内不再分配给其他用户,过期释放。 | | *LiveApi* | **queryStatus** | *queryStatusForms* | *LiveQueryStatusResult* | 查询推流状态 | @@ -105,6 +110,11 @@ try { | *MultiplayApi* | **modify** | *modifyForms* | *MultiplayModifyResult* | 修改联机 | | *MultiplayApi* | **query** | *queryForms* | *MultiplayQueryResult* | 离开联机 | | *TokenApi* | **getTriple** | | *GetTripleResult* | 获取临时安全令牌 | + | *UsercontrollerApi* | **deleteGameArchive** | *deleteGameArchiveForms* | *UsercontollerDeleteGameArchiveResult* | 根据存档id删除存档纪录 | + | *UsercontrollerApi* | **getGameTrialSurplusDuration** | *getGameTrialSurplusDurationForms* | *UsercontollerGetGameTrialSurplusDurationResult* | 查询剩余试玩游戏时长 | + | *UsercontrollerApi* | **listLatestGameArchive** | *listLatestGameArchiveForms* | *UsercontollerListLatestGameArchiveResult* | 查询用户正常状态的最新存档纪录,按照存档时间倒序 | + | *UsercontrollerApi* | **restoreGameArchive** | *restoreGameArchiveForms* | *UsercontollerRestoreGameArchiveResult* | 将指定的存档ID恢复为最新存档 | + | *UsercontrollerApi* | **updateGameArchiveTagStatus** | *updateGameArchiveTagStatusForms* | *UsercontollerUpdateGameArchiveTagStatusResult* | 更新存档打标状态 | ## License [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) diff --git a/pom.xml b/pom.xml index 095d91ab5..bd5ce7d7a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ alibabacloud-yjopenapi-java-client jar alibabacloud-yjopenapi-java-client - 1.0.20230131 + 1.0.20230301 https://github.com/aliyun/alibabacloud-yjopenapi-java-client YuanJing OpenAPI SDK for Java diff --git a/src/main/java/com/alibaba/yjopenapi/client/api/DispatchApi.java b/src/main/java/com/alibaba/yjopenapi/client/api/DispatchApi.java index c359dec54..18fac2335 100644 --- a/src/main/java/com/alibaba/yjopenapi/client/api/DispatchApi.java +++ b/src/main/java/com/alibaba/yjopenapi/client/api/DispatchApi.java @@ -9,10 +9,15 @@ import java.io.IOException; import com.alibaba.yjopenapi.client.model.BatchStopGameResult; +import com.alibaba.yjopenapi.client.model.CancelGameHangResult; import com.alibaba.yjopenapi.client.model.GetGameConcurrencyResult; import com.alibaba.yjopenapi.client.model.GetStockResult; import com.alibaba.yjopenapi.client.model.GetStopGameTokenResult; +import com.alibaba.yjopenapi.client.model.ListGameServerIpResult; +import com.alibaba.yjopenapi.client.model.QueryGameHangResult; import com.alibaba.yjopenapi.client.model.QuerySessionStatusResult; +import com.alibaba.yjopenapi.client.model.SetGameAliveResult; +import com.alibaba.yjopenapi.client.model.SetGameHangResult; import com.alibaba.yjopenapi.client.model.StopGameResult; import com.alibaba.yjopenapi.client.model.TryToGetSlotFormsStartParam; import com.alibaba.yjopenapi.client.model.TryToGetSlotResult; @@ -157,6 +162,95 @@ public com.squareup.okhttp.Call batchStopGameAsync(BatchStopGameForms varForms, apiClient.executeAsync(call, BatchStopGameResult.class, callback); return call; } + /** + * Build call for cancelGameHang + * @param varForms CancelGameHangForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call cancelGameHangCall(CancelGameHangForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/cancelGameHang"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("gameSession", varForms.getGameSession()); + localVarFormParams.put("appKey", varForms.getAppKey()); + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call cancelGameHangValidateBeforeCall(CancelGameHangForms varForms) throws ApiException { + // verify the required parameter 'gameSession' is set + if (varForms.getGameSession() == null) { + throw new ApiException("Missing the required parameter 'gameSession' when calling cancelGameHang(Async)"); + } + // verify the required parameter 'appKey' is set + if (varForms.getAppKey() == null) { + throw new ApiException("Missing the required parameter 'appKey' when calling cancelGameHang(Async)"); + } + + com.squareup.okhttp.Call call = cancelGameHangCall(varForms); + return call; + } + + /** + * + * 取消游戏挂机 + * @param varForms CancelGameHangForms + * @return CancelGameHangResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CancelGameHangResult cancelGameHang(CancelGameHangForms varForms) throws ApiException { + ApiResponse resp = cancelGameHangWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 取消游戏挂机 + * @param varForms CancelGameHangForms + * @return ApiResponse<CancelGameHangResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse cancelGameHangWithHttpInfo(CancelGameHangForms varForms) throws ApiException { + com.squareup.okhttp.Call call = cancelGameHangValidateBeforeCall(varForms); + return apiClient.execute(call, CancelGameHangResult.class); + } + + /** + * (asynchronously) + * 取消游戏挂机 + * @param varForms CancelGameHangForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call cancelGameHangAsync(CancelGameHangForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = cancelGameHangValidateBeforeCall(varForms); + apiClient.executeAsync(call, CancelGameHangResult.class, callback); + return call; + } /** * Build call for getGameConcurrency * @param varForms GetGameConcurrencyForms @@ -433,6 +527,180 @@ public com.squareup.okhttp.Call getStopGameTokenAsync(GetStopGameTokenForms varF apiClient.executeAsync(call, GetStopGameTokenResult.class, callback); return call; } + /** + * Build call for listGameServerIp + * @param varForms ListGameServerIpForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listGameServerIpCall(ListGameServerIpForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/listGameServerIp"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + if (varForms.getPageSize() != null) { + localVarFormParams.put("pageSize", varForms.getPageSize()); + } + if (varForms.getNextToken() != null) { + localVarFormParams.put("nextToken", varForms.getNextToken()); + } + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call listGameServerIpValidateBeforeCall(ListGameServerIpForms varForms) throws ApiException { + + com.squareup.okhttp.Call call = listGameServerIpCall(varForms); + return call; + } + + /** + * + * 获取自己租户下的游戏服务器ip列表 + * @param varForms ListGameServerIpForms + * @return ListGameServerIpResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListGameServerIpResult listGameServerIp(ListGameServerIpForms varForms) throws ApiException { + ApiResponse resp = listGameServerIpWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 获取自己租户下的游戏服务器ip列表 + * @param varForms ListGameServerIpForms + * @return ApiResponse<ListGameServerIpResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listGameServerIpWithHttpInfo(ListGameServerIpForms varForms) throws ApiException { + com.squareup.okhttp.Call call = listGameServerIpValidateBeforeCall(varForms); + return apiClient.execute(call, ListGameServerIpResult.class); + } + + /** + * (asynchronously) + * 获取自己租户下的游戏服务器ip列表 + * @param varForms ListGameServerIpForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listGameServerIpAsync(ListGameServerIpForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = listGameServerIpValidateBeforeCall(varForms); + apiClient.executeAsync(call, ListGameServerIpResult.class, callback); + return call; + } + /** + * Build call for queryGameHang + * @param varForms QueryGameHangForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call queryGameHangCall(QueryGameHangForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/queryGameHang"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("gameSession", varForms.getGameSession()); + localVarFormParams.put("appKey", varForms.getAppKey()); + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call queryGameHangValidateBeforeCall(QueryGameHangForms varForms) throws ApiException { + // verify the required parameter 'gameSession' is set + if (varForms.getGameSession() == null) { + throw new ApiException("Missing the required parameter 'gameSession' when calling queryGameHang(Async)"); + } + // verify the required parameter 'appKey' is set + if (varForms.getAppKey() == null) { + throw new ApiException("Missing the required parameter 'appKey' when calling queryGameHang(Async)"); + } + + com.squareup.okhttp.Call call = queryGameHangCall(varForms); + return call; + } + + /** + * + * 查询游戏挂机状态 + * @param varForms QueryGameHangForms + * @return QueryGameHangResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public QueryGameHangResult queryGameHang(QueryGameHangForms varForms) throws ApiException { + ApiResponse resp = queryGameHangWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 查询游戏挂机状态 + * @param varForms QueryGameHangForms + * @return ApiResponse<QueryGameHangResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse queryGameHangWithHttpInfo(QueryGameHangForms varForms) throws ApiException { + com.squareup.okhttp.Call call = queryGameHangValidateBeforeCall(varForms); + return apiClient.execute(call, QueryGameHangResult.class); + } + + /** + * (asynchronously) + * 查询游戏挂机状态 + * @param varForms QueryGameHangForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call queryGameHangAsync(QueryGameHangForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = queryGameHangValidateBeforeCall(varForms); + apiClient.executeAsync(call, QueryGameHangResult.class, callback); + return call; + } /** * Build call for querySessionStatus * @param varForms QuerySessionStatusForms @@ -522,6 +790,194 @@ public com.squareup.okhttp.Call querySessionStatusAsync(QuerySessionStatusForms apiClient.executeAsync(call, QuerySessionStatusResult.class, callback); return call; } + /** + * Build call for setGameAlive + * @param varForms SetGameAliveForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setGameAliveCall(SetGameAliveForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/setGameAlive"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("gameSession", varForms.getGameSession()); + localVarFormParams.put("appKey", varForms.getAppKey()); + localVarFormParams.put("keepAlive", varForms.getKeepAlive()); + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call setGameAliveValidateBeforeCall(SetGameAliveForms varForms) throws ApiException { + // verify the required parameter 'gameSession' is set + if (varForms.getGameSession() == null) { + throw new ApiException("Missing the required parameter 'gameSession' when calling setGameAlive(Async)"); + } + // verify the required parameter 'appKey' is set + if (varForms.getAppKey() == null) { + throw new ApiException("Missing the required parameter 'appKey' when calling setGameAlive(Async)"); + } + // verify the required parameter 'keepAlive' is set + if (varForms.getKeepAlive() == null) { + throw new ApiException("Missing the required parameter 'keepAlive' when calling setGameAlive(Async)"); + } + + com.squareup.okhttp.Call call = setGameAliveCall(varForms); + return call; + } + + /** + * + * 设置游戏可运行时长 + * @param varForms SetGameAliveForms + * @return SetGameAliveResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public SetGameAliveResult setGameAlive(SetGameAliveForms varForms) throws ApiException { + ApiResponse resp = setGameAliveWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 设置游戏可运行时长 + * @param varForms SetGameAliveForms + * @return ApiResponse<SetGameAliveResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setGameAliveWithHttpInfo(SetGameAliveForms varForms) throws ApiException { + com.squareup.okhttp.Call call = setGameAliveValidateBeforeCall(varForms); + return apiClient.execute(call, SetGameAliveResult.class); + } + + /** + * (asynchronously) + * 设置游戏可运行时长 + * @param varForms SetGameAliveForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setGameAliveAsync(SetGameAliveForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = setGameAliveValidateBeforeCall(varForms); + apiClient.executeAsync(call, SetGameAliveResult.class, callback); + return call; + } + /** + * Build call for setGameHang + * @param varForms SetGameHangForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setGameHangCall(SetGameHangForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/setGameHang"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("gameSession", varForms.getGameSession()); + localVarFormParams.put("appKey", varForms.getAppKey()); + localVarFormParams.put("duration", varForms.getDuration()); + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call setGameHangValidateBeforeCall(SetGameHangForms varForms) throws ApiException { + // verify the required parameter 'gameSession' is set + if (varForms.getGameSession() == null) { + throw new ApiException("Missing the required parameter 'gameSession' when calling setGameHang(Async)"); + } + // verify the required parameter 'appKey' is set + if (varForms.getAppKey() == null) { + throw new ApiException("Missing the required parameter 'appKey' when calling setGameHang(Async)"); + } + // verify the required parameter 'duration' is set + if (varForms.getDuration() == null) { + throw new ApiException("Missing the required parameter 'duration' when calling setGameHang(Async)"); + } + + com.squareup.okhttp.Call call = setGameHangCall(varForms); + return call; + } + + /** + * + * 设置游戏挂机 + * @param varForms SetGameHangForms + * @return SetGameHangResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public SetGameHangResult setGameHang(SetGameHangForms varForms) throws ApiException { + ApiResponse resp = setGameHangWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 设置游戏挂机 + * @param varForms SetGameHangForms + * @return ApiResponse<SetGameHangResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setGameHangWithHttpInfo(SetGameHangForms varForms) throws ApiException { + com.squareup.okhttp.Call call = setGameHangValidateBeforeCall(varForms); + return apiClient.execute(call, SetGameHangResult.class); + } + + /** + * (asynchronously) + * 设置游戏挂机 + * @param varForms SetGameHangForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setGameHangAsync(SetGameHangForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = setGameHangValidateBeforeCall(varForms); + apiClient.executeAsync(call, SetGameHangResult.class, callback); + return call; + } /** * Build call for stopGame * @param varForms StopGameForms diff --git a/src/main/java/com/alibaba/yjopenapi/client/api/UsercontrollerApi.java b/src/main/java/com/alibaba/yjopenapi/client/api/UsercontrollerApi.java new file mode 100644 index 000000000..cd5d838ca --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/api/UsercontrollerApi.java @@ -0,0 +1,533 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.api; + +import java.io.IOException; + +import com.alibaba.yjopenapi.client.model.UsercontollerDeleteGameArchiveResult; +import com.alibaba.yjopenapi.client.model.UsercontollerGetGameTrialSurplusDurationResult; +import com.alibaba.yjopenapi.client.model.UsercontollerListLatestGameArchiveResult; +import com.alibaba.yjopenapi.client.model.UsercontollerRestoreGameArchiveResult; +import com.alibaba.yjopenapi.client.model.UsercontollerUpdateGameArchiveTagStatusResult; + +import com.alibaba.yjopenapi.client.model.*; + +import java.util.Arrays; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UsercontrollerApi { + private ApiClient apiClient; + private Configuration configuration; + + public UsercontrollerApi() { + this(new ApiClient(), Configuration.getDefaultConfiguration()); + } + + public UsercontrollerApi(ApiClient apiClient, Configuration configuration) { + this.apiClient = apiClient; + this.configuration = configuration; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public Configuration getConfiguration() { + return configuration; + } + + public void setConfiguration(Configuration configuration) { + this.configuration = configuration; + } + + /** + * Build call for deleteGameArchive + * @param varForms UsercontrollerDeleteGameArchiveForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteGameArchiveCall(UsercontrollerDeleteGameArchiveForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/usercontroller/deleteGameArchive"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("accountId", varForms.getAccountId()); + localVarFormParams.put("gameId", varForms.getGameId()); + localVarFormParams.put("archiveId", varForms.getArchiveId()); + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call deleteGameArchiveValidateBeforeCall(UsercontrollerDeleteGameArchiveForms varForms) throws ApiException { + // verify the required parameter 'accountId' is set + if (varForms.getAccountId() == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling deleteGameArchive(Async)"); + } + // verify the required parameter 'gameId' is set + if (varForms.getGameId() == null) { + throw new ApiException("Missing the required parameter 'gameId' when calling deleteGameArchive(Async)"); + } + // verify the required parameter 'archiveId' is set + if (varForms.getArchiveId() == null) { + throw new ApiException("Missing the required parameter 'archiveId' when calling deleteGameArchive(Async)"); + } + + com.squareup.okhttp.Call call = deleteGameArchiveCall(varForms); + return call; + } + + /** + * + * 根据存档id删除存档纪录 + * @param varForms UsercontrollerDeleteGameArchiveForms + * @return UsercontollerDeleteGameArchiveResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UsercontollerDeleteGameArchiveResult deleteGameArchive(UsercontrollerDeleteGameArchiveForms varForms) throws ApiException { + ApiResponse resp = deleteGameArchiveWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 根据存档id删除存档纪录 + * @param varForms UsercontrollerDeleteGameArchiveForms + * @return ApiResponse<UsercontollerDeleteGameArchiveResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteGameArchiveWithHttpInfo(UsercontrollerDeleteGameArchiveForms varForms) throws ApiException { + com.squareup.okhttp.Call call = deleteGameArchiveValidateBeforeCall(varForms); + return apiClient.execute(call, UsercontollerDeleteGameArchiveResult.class); + } + + /** + * (asynchronously) + * 根据存档id删除存档纪录 + * @param varForms UsercontrollerDeleteGameArchiveForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteGameArchiveAsync(UsercontrollerDeleteGameArchiveForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = deleteGameArchiveValidateBeforeCall(varForms); + apiClient.executeAsync(call, UsercontollerDeleteGameArchiveResult.class, callback); + return call; + } + /** + * Build call for getGameTrialSurplusDuration + * @param varForms UsercontrollerGetGameTrialSurplusDurationForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getGameTrialSurplusDurationCall(UsercontrollerGetGameTrialSurplusDurationForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/usercontroller/getGameTrialSurplusDuration"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("accountId", varForms.getAccountId()); + localVarFormParams.put("gameId", varForms.getGameId()); + localVarFormParams.put("projectId", varForms.getProjectId()); + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call getGameTrialSurplusDurationValidateBeforeCall(UsercontrollerGetGameTrialSurplusDurationForms varForms) throws ApiException { + // verify the required parameter 'accountId' is set + if (varForms.getAccountId() == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling getGameTrialSurplusDuration(Async)"); + } + // verify the required parameter 'gameId' is set + if (varForms.getGameId() == null) { + throw new ApiException("Missing the required parameter 'gameId' when calling getGameTrialSurplusDuration(Async)"); + } + // verify the required parameter 'projectId' is set + if (varForms.getProjectId() == null) { + throw new ApiException("Missing the required parameter 'projectId' when calling getGameTrialSurplusDuration(Async)"); + } + + com.squareup.okhttp.Call call = getGameTrialSurplusDurationCall(varForms); + return call; + } + + /** + * + * 查询剩余试玩游戏时长 + * @param varForms UsercontrollerGetGameTrialSurplusDurationForms + * @return UsercontollerGetGameTrialSurplusDurationResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UsercontollerGetGameTrialSurplusDurationResult getGameTrialSurplusDuration(UsercontrollerGetGameTrialSurplusDurationForms varForms) throws ApiException { + ApiResponse resp = getGameTrialSurplusDurationWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 查询剩余试玩游戏时长 + * @param varForms UsercontrollerGetGameTrialSurplusDurationForms + * @return ApiResponse<UsercontollerGetGameTrialSurplusDurationResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getGameTrialSurplusDurationWithHttpInfo(UsercontrollerGetGameTrialSurplusDurationForms varForms) throws ApiException { + com.squareup.okhttp.Call call = getGameTrialSurplusDurationValidateBeforeCall(varForms); + return apiClient.execute(call, UsercontollerGetGameTrialSurplusDurationResult.class); + } + + /** + * (asynchronously) + * 查询剩余试玩游戏时长 + * @param varForms UsercontrollerGetGameTrialSurplusDurationForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getGameTrialSurplusDurationAsync(UsercontrollerGetGameTrialSurplusDurationForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = getGameTrialSurplusDurationValidateBeforeCall(varForms); + apiClient.executeAsync(call, UsercontollerGetGameTrialSurplusDurationResult.class, callback); + return call; + } + /** + * Build call for listLatestGameArchive + * @param varForms UsercontrollerListLatestGameArchiveForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listLatestGameArchiveCall(UsercontrollerListLatestGameArchiveForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/usercontroller/listLatestGameArchive"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("accountId", varForms.getAccountId()); + localVarFormParams.put("gameId", varForms.getGameId()); + if (varForms.getPageSize() != null) { + localVarFormParams.put("pageSize", varForms.getPageSize()); + } + if (varForms.getPageNumber() != null) { + localVarFormParams.put("pageNumber", varForms.getPageNumber()); + } + if (varForms.getTagStatus() != null) { + localVarFormParams.put("tagStatus", varForms.getTagStatus()); + } + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call listLatestGameArchiveValidateBeforeCall(UsercontrollerListLatestGameArchiveForms varForms) throws ApiException { + // verify the required parameter 'accountId' is set + if (varForms.getAccountId() == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling listLatestGameArchive(Async)"); + } + // verify the required parameter 'gameId' is set + if (varForms.getGameId() == null) { + throw new ApiException("Missing the required parameter 'gameId' when calling listLatestGameArchive(Async)"); + } + + com.squareup.okhttp.Call call = listLatestGameArchiveCall(varForms); + return call; + } + + /** + * + * 查询用户正常状态的最新存档纪录,按照存档时间倒序 + * @param varForms UsercontrollerListLatestGameArchiveForms + * @return UsercontollerListLatestGameArchiveResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UsercontollerListLatestGameArchiveResult listLatestGameArchive(UsercontrollerListLatestGameArchiveForms varForms) throws ApiException { + ApiResponse resp = listLatestGameArchiveWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 查询用户正常状态的最新存档纪录,按照存档时间倒序 + * @param varForms UsercontrollerListLatestGameArchiveForms + * @return ApiResponse<UsercontollerListLatestGameArchiveResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listLatestGameArchiveWithHttpInfo(UsercontrollerListLatestGameArchiveForms varForms) throws ApiException { + com.squareup.okhttp.Call call = listLatestGameArchiveValidateBeforeCall(varForms); + return apiClient.execute(call, UsercontollerListLatestGameArchiveResult.class); + } + + /** + * (asynchronously) + * 查询用户正常状态的最新存档纪录,按照存档时间倒序 + * @param varForms UsercontrollerListLatestGameArchiveForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listLatestGameArchiveAsync(UsercontrollerListLatestGameArchiveForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = listLatestGameArchiveValidateBeforeCall(varForms); + apiClient.executeAsync(call, UsercontollerListLatestGameArchiveResult.class, callback); + return call; + } + /** + * Build call for restoreGameArchive + * @param varForms UsercontrollerRestoreGameArchiveForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call restoreGameArchiveCall(UsercontrollerRestoreGameArchiveForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/usercontroller/restoreGameArchive"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("accountId", varForms.getAccountId()); + localVarFormParams.put("gameId", varForms.getGameId()); + localVarFormParams.put("archiveId", varForms.getArchiveId()); + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call restoreGameArchiveValidateBeforeCall(UsercontrollerRestoreGameArchiveForms varForms) throws ApiException { + // verify the required parameter 'accountId' is set + if (varForms.getAccountId() == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling restoreGameArchive(Async)"); + } + // verify the required parameter 'gameId' is set + if (varForms.getGameId() == null) { + throw new ApiException("Missing the required parameter 'gameId' when calling restoreGameArchive(Async)"); + } + // verify the required parameter 'archiveId' is set + if (varForms.getArchiveId() == null) { + throw new ApiException("Missing the required parameter 'archiveId' when calling restoreGameArchive(Async)"); + } + + com.squareup.okhttp.Call call = restoreGameArchiveCall(varForms); + return call; + } + + /** + * + * 将指定的存档ID恢复为最新存档 + * @param varForms UsercontrollerRestoreGameArchiveForms + * @return UsercontollerRestoreGameArchiveResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UsercontollerRestoreGameArchiveResult restoreGameArchive(UsercontrollerRestoreGameArchiveForms varForms) throws ApiException { + ApiResponse resp = restoreGameArchiveWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 将指定的存档ID恢复为最新存档 + * @param varForms UsercontrollerRestoreGameArchiveForms + * @return ApiResponse<UsercontollerRestoreGameArchiveResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse restoreGameArchiveWithHttpInfo(UsercontrollerRestoreGameArchiveForms varForms) throws ApiException { + com.squareup.okhttp.Call call = restoreGameArchiveValidateBeforeCall(varForms); + return apiClient.execute(call, UsercontollerRestoreGameArchiveResult.class); + } + + /** + * (asynchronously) + * 将指定的存档ID恢复为最新存档 + * @param varForms UsercontrollerRestoreGameArchiveForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call restoreGameArchiveAsync(UsercontrollerRestoreGameArchiveForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = restoreGameArchiveValidateBeforeCall(varForms); + apiClient.executeAsync(call, UsercontollerRestoreGameArchiveResult.class, callback); + return call; + } + /** + * Build call for updateGameArchiveTagStatus + * @param varForms UsercontrollerUpdateGameArchiveTagStatusForms + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateGameArchiveTagStatusCall(UsercontrollerUpdateGameArchiveTagStatusForms varForms) throws ApiException { + + // create path and map variables + String localVarPath = "/usercontroller/updateGameArchiveTagStatus"; + + Map localVarQueryParams = new HashMap(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + localVarFormParams.put("accountId", varForms.getAccountId()); + localVarFormParams.put("gameId", varForms.getGameId()); + localVarFormParams.put("archiveId", varForms.getArchiveId()); + localVarFormParams.put("tagStatus", varForms.getTagStatus()); + + final List localVarAccepts = Arrays.asList( + "application/json" + ); + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final List localVarContentTypes = Arrays.asList( + "application/x-www-form-urlencoded" + ); + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String path = configuration.getScheme() + "://" + configuration.getHost() + localVarPath; + return apiClient.buildCall(path, "POST", localVarQueryParams, localVarHeaderParams, localVarFormParams, configuration); + } + + private com.squareup.okhttp.Call updateGameArchiveTagStatusValidateBeforeCall(UsercontrollerUpdateGameArchiveTagStatusForms varForms) throws ApiException { + // verify the required parameter 'accountId' is set + if (varForms.getAccountId() == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling updateGameArchiveTagStatus(Async)"); + } + // verify the required parameter 'gameId' is set + if (varForms.getGameId() == null) { + throw new ApiException("Missing the required parameter 'gameId' when calling updateGameArchiveTagStatus(Async)"); + } + // verify the required parameter 'archiveId' is set + if (varForms.getArchiveId() == null) { + throw new ApiException("Missing the required parameter 'archiveId' when calling updateGameArchiveTagStatus(Async)"); + } + // verify the required parameter 'tagStatus' is set + if (varForms.getTagStatus() == null) { + throw new ApiException("Missing the required parameter 'tagStatus' when calling updateGameArchiveTagStatus(Async)"); + } + + com.squareup.okhttp.Call call = updateGameArchiveTagStatusCall(varForms); + return call; + } + + /** + * + * 更新存档打标状态 + * @param varForms UsercontrollerUpdateGameArchiveTagStatusForms + * @return UsercontollerUpdateGameArchiveTagStatusResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UsercontollerUpdateGameArchiveTagStatusResult updateGameArchiveTagStatus(UsercontrollerUpdateGameArchiveTagStatusForms varForms) throws ApiException { + ApiResponse resp = updateGameArchiveTagStatusWithHttpInfo(varForms); + return resp.getData(); + } + + /** + * + * 更新存档打标状态 + * @param varForms UsercontrollerUpdateGameArchiveTagStatusForms + * @return ApiResponse<UsercontollerUpdateGameArchiveTagStatusResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateGameArchiveTagStatusWithHttpInfo(UsercontrollerUpdateGameArchiveTagStatusForms varForms) throws ApiException { + com.squareup.okhttp.Call call = updateGameArchiveTagStatusValidateBeforeCall(varForms); + return apiClient.execute(call, UsercontollerUpdateGameArchiveTagStatusResult.class); + } + + /** + * (asynchronously) + * 更新存档打标状态 + * @param varForms UsercontrollerUpdateGameArchiveTagStatusForms + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateGameArchiveTagStatusAsync(UsercontrollerUpdateGameArchiveTagStatusForms varForms, final ApiCallback callback) throws ApiException { + + com.squareup.okhttp.Call call = updateGameArchiveTagStatusValidateBeforeCall(varForms); + apiClient.executeAsync(call, UsercontollerUpdateGameArchiveTagStatusResult.class, callback); + return call; + } +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangForms.java new file mode 100644 index 000000000..e9e143835 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangForms.java @@ -0,0 +1,100 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * CancelGameHangForms + */ +public class CancelGameHangForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String gameSession = null; + + + private String appKey = null; + + + public CancelGameHangForms gameSession(String gameSession) { + this.gameSession = gameSession; + return this; + } + + /** + * 会话ID + * @return gameSession + **/ + public String getGameSession() { + return gameSession; + } + + public void setGameSession(String gameSession) { + this.gameSession = gameSession; + } + + public CancelGameHangForms appKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 项目应用AK + * @return appKey + **/ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CancelGameHangForms cancelGameHangForms = (CancelGameHangForms) o; + return Objects.equals(this.gameSession, cancelGameHangForms.gameSession) && + Objects.equals(this.appKey, cancelGameHangForms.appKey); + } + + @Override + public int hashCode() { + return Objects.hash(gameSession, appKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancelGameHangForms {"); + + sb.append(",gameSession: ").append(toIndentedString(gameSession)); + sb.append(",appKey: ").append(toIndentedString(appKey)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangResult.java new file mode 100644 index 000000000..08e15b952 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangResult.java @@ -0,0 +1,101 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.CancelGameHangResultModel; +import java.io.Serializable; +/** + * CancelGameHangResult + */ +public class CancelGameHangResult implements Serializable { + private static final long serialVersionUID = 1L; + + private Boolean success = null; + + + private CancelGameHangResultModel model = null; + + + public CancelGameHangResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public CancelGameHangResult model(CancelGameHangResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public CancelGameHangResultModel getModel() { + return model; + } + + public void setModel(CancelGameHangResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CancelGameHangResult cancelGameHangResult = (CancelGameHangResult) o; + return Objects.equals(this.success, cancelGameHangResult.success) && + Objects.equals(this.model, cancelGameHangResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancelGameHangResult {"); + + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangResultModel.java new file mode 100644 index 000000000..e25406e8d --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/CancelGameHangResultModel.java @@ -0,0 +1,144 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * CancelGameHangResultModel + */ +public class CancelGameHangResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private String gameSession = null; + + + private Boolean success = null; + + + private String code = null; + + + private String message = null; + + + public CancelGameHangResultModel gameSession(String gameSession) { + this.gameSession = gameSession; + return this; + } + + /** + * 会话ID + * @return gameSession + **/ + public String getGameSession() { + return gameSession; + } + + public void setGameSession(String gameSession) { + this.gameSession = gameSession; + } + + public CancelGameHangResultModel success(Boolean success) { + this.success = success; + return this; + } + + /** + * 设置是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public CancelGameHangResultModel code(String code) { + this.code = code; + return this; + } + + /** + * 错误Code + * @return code + **/ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public CancelGameHangResultModel message(String message) { + this.message = message; + return this; + } + + /** + * 错误Message + * @return message + **/ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CancelGameHangResultModel cancelGameHangResultModel = (CancelGameHangResultModel) o; + return Objects.equals(this.gameSession, cancelGameHangResultModel.gameSession) && + Objects.equals(this.success, cancelGameHangResultModel.success) && + Objects.equals(this.code, cancelGameHangResultModel.code) && + Objects.equals(this.message, cancelGameHangResultModel.message); + } + + @Override + public int hashCode() { + return Objects.hash(gameSession, success, code, message); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancelGameHangResultModel {"); + + sb.append(",gameSession: ").append(toIndentedString(gameSession)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",code: ").append(toIndentedString(code)); + sb.append(",message: ").append(toIndentedString(message)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpForms.java new file mode 100644 index 000000000..21b10d69c --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpForms.java @@ -0,0 +1,100 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * ListGameServerIpForms + */ +public class ListGameServerIpForms implements Serializable { + private static final long serialVersionUID = 1L; + + private Long pageSize = null; + + + private String nextToken = null; + + + public ListGameServerIpForms pageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 分页大小 + * @return pageSize + **/ + public Long getPageSize() { + return pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public ListGameServerIpForms nextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * 分页标识 + * @return nextToken + **/ + public String getNextToken() { + return nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListGameServerIpForms listGameServerIpForms = (ListGameServerIpForms) o; + return Objects.equals(this.pageSize, listGameServerIpForms.pageSize) && + Objects.equals(this.nextToken, listGameServerIpForms.nextToken); + } + + @Override + public int hashCode() { + return Objects.hash(pageSize, nextToken); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListGameServerIpForms {"); + + sb.append(",pageSize: ").append(toIndentedString(pageSize)); + sb.append(",nextToken: ").append(toIndentedString(nextToken)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpResult.java new file mode 100644 index 000000000..cb5c9fa1c --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpResult.java @@ -0,0 +1,145 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.ListGameServerIpResultModel; +import java.io.Serializable; +/** + * ListGameServerIpResult + */ +public class ListGameServerIpResult implements Serializable { + private static final long serialVersionUID = 1L; + + private String msgCode = null; + + + private String msgInfo = null; + + + private Boolean success = null; + + + private ListGameServerIpResultModel model = null; + + + public ListGameServerIpResult msgCode(String msgCode) { + this.msgCode = msgCode; + return this; + } + + /** + * 服务端状态码 + * @return msgCode + **/ + public String getMsgCode() { + return msgCode; + } + + public void setMsgCode(String msgCode) { + this.msgCode = msgCode; + } + + public ListGameServerIpResult msgInfo(String msgInfo) { + this.msgInfo = msgInfo; + return this; + } + + /** + * 服务端描述信息 + * @return msgInfo + **/ + public String getMsgInfo() { + return msgInfo; + } + + public void setMsgInfo(String msgInfo) { + this.msgInfo = msgInfo; + } + + public ListGameServerIpResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public ListGameServerIpResult model(ListGameServerIpResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public ListGameServerIpResultModel getModel() { + return model; + } + + public void setModel(ListGameServerIpResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListGameServerIpResult listGameServerIpResult = (ListGameServerIpResult) o; + return Objects.equals(this.msgCode, listGameServerIpResult.msgCode) && + Objects.equals(this.msgInfo, listGameServerIpResult.msgInfo) && + Objects.equals(this.success, listGameServerIpResult.success) && + Objects.equals(this.model, listGameServerIpResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(msgCode, msgInfo, success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListGameServerIpResult {"); + + sb.append(",msgCode: ").append(toIndentedString(msgCode)); + sb.append(",msgInfo: ").append(toIndentedString(msgInfo)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpResultModel.java new file mode 100644 index 000000000..8f3ac4a37 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/ListGameServerIpResultModel.java @@ -0,0 +1,154 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; +/** + * ListGameServerIpResultModel + */ +public class ListGameServerIpResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private String nextToken = null; + + + private Long pageSize = null; + + + private List ipList = null; + + + private Long totalCount = null; + + + public ListGameServerIpResultModel nextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * 分页游标 + * @return nextToken + **/ + public String getNextToken() { + return nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public ListGameServerIpResultModel pageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 分页大小 + * @return pageSize + **/ + public Long getPageSize() { + return pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public ListGameServerIpResultModel ipList(List ipList) { + this.ipList = ipList; + return this; + } + + public ListGameServerIpResultModel addIpListItem(String ipListItem) { + if (this.ipList == null) { + this.ipList = new ArrayList(); + } + this.ipList.add(ipListItem); + return this; + } + + /** + * ip列表 + * @return ipList + **/ + public List getIpList() { + return ipList; + } + + public void setIpList(List ipList) { + this.ipList = ipList; + } + + public ListGameServerIpResultModel totalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 总大小 + * @return totalCount + **/ + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListGameServerIpResultModel listGameServerIpResultModel = (ListGameServerIpResultModel) o; + return Objects.equals(this.nextToken, listGameServerIpResultModel.nextToken) && + Objects.equals(this.pageSize, listGameServerIpResultModel.pageSize) && + Objects.equals(this.ipList, listGameServerIpResultModel.ipList) && + Objects.equals(this.totalCount, listGameServerIpResultModel.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(nextToken, pageSize, ipList, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListGameServerIpResultModel {"); + + sb.append(",nextToken: ").append(toIndentedString(nextToken)); + sb.append(",pageSize: ").append(toIndentedString(pageSize)); + sb.append(",ipList: ").append(toIndentedString(ipList)); + sb.append(",totalCount: ").append(toIndentedString(totalCount)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangForms.java new file mode 100644 index 000000000..28f672fd5 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangForms.java @@ -0,0 +1,100 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * QueryGameHangForms + */ +public class QueryGameHangForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String gameSession = null; + + + private String appKey = null; + + + public QueryGameHangForms gameSession(String gameSession) { + this.gameSession = gameSession; + return this; + } + + /** + * 会话ID + * @return gameSession + **/ + public String getGameSession() { + return gameSession; + } + + public void setGameSession(String gameSession) { + this.gameSession = gameSession; + } + + public QueryGameHangForms appKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 项目应用AK + * @return appKey + **/ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QueryGameHangForms queryGameHangForms = (QueryGameHangForms) o; + return Objects.equals(this.gameSession, queryGameHangForms.gameSession) && + Objects.equals(this.appKey, queryGameHangForms.appKey); + } + + @Override + public int hashCode() { + return Objects.hash(gameSession, appKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryGameHangForms {"); + + sb.append(",gameSession: ").append(toIndentedString(gameSession)); + sb.append(",appKey: ").append(toIndentedString(appKey)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangResult.java new file mode 100644 index 000000000..06d435856 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangResult.java @@ -0,0 +1,101 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.QueryGameHangResultModel; +import java.io.Serializable; +/** + * QueryGameHangResult + */ +public class QueryGameHangResult implements Serializable { + private static final long serialVersionUID = 1L; + + private Boolean success = null; + + + private QueryGameHangResultModel model = null; + + + public QueryGameHangResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public QueryGameHangResult model(QueryGameHangResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public QueryGameHangResultModel getModel() { + return model; + } + + public void setModel(QueryGameHangResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QueryGameHangResult queryGameHangResult = (QueryGameHangResult) o; + return Objects.equals(this.success, queryGameHangResult.success) && + Objects.equals(this.model, queryGameHangResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryGameHangResult {"); + + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangResultModel.java new file mode 100644 index 000000000..5c26780ca --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/QueryGameHangResultModel.java @@ -0,0 +1,210 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * QueryGameHangResultModel + */ +public class QueryGameHangResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private String gameSession = null; + + + private Boolean success = null; + + + private String code = null; + + + private String message = null; + + + private Boolean hanging = null; + + + private Long startHangTimestamp = null; + + + private Long duration = null; + + + public QueryGameHangResultModel gameSession(String gameSession) { + this.gameSession = gameSession; + return this; + } + + /** + * 会话ID + * @return gameSession + **/ + public String getGameSession() { + return gameSession; + } + + public void setGameSession(String gameSession) { + this.gameSession = gameSession; + } + + public QueryGameHangResultModel success(Boolean success) { + this.success = success; + return this; + } + + /** + * 设置是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public QueryGameHangResultModel code(String code) { + this.code = code; + return this; + } + + /** + * 错误Code + * @return code + **/ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public QueryGameHangResultModel message(String message) { + this.message = message; + return this; + } + + /** + * 错误Message + * @return message + **/ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public QueryGameHangResultModel hanging(Boolean hanging) { + this.hanging = hanging; + return this; + } + + /** + * 会话ID是否在挂机中 + * @return hanging + **/ + public Boolean getHanging() { + return hanging; + } + + public void setHanging(Boolean hanging) { + this.hanging = hanging; + } + + public QueryGameHangResultModel startHangTimestamp(Long startHangTimestamp) { + this.startHangTimestamp = startHangTimestamp; + return this; + } + + /** + * 开始挂机毫秒时间戳 + * @return startHangTimestamp + **/ + public Long getStartHangTimestamp() { + return startHangTimestamp; + } + + public void setStartHangTimestamp(Long startHangTimestamp) { + this.startHangTimestamp = startHangTimestamp; + } + + public QueryGameHangResultModel duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * 挂机时长 + * @return duration + **/ + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QueryGameHangResultModel queryGameHangResultModel = (QueryGameHangResultModel) o; + return Objects.equals(this.gameSession, queryGameHangResultModel.gameSession) && + Objects.equals(this.success, queryGameHangResultModel.success) && + Objects.equals(this.code, queryGameHangResultModel.code) && + Objects.equals(this.message, queryGameHangResultModel.message) && + Objects.equals(this.hanging, queryGameHangResultModel.hanging) && + Objects.equals(this.startHangTimestamp, queryGameHangResultModel.startHangTimestamp) && + Objects.equals(this.duration, queryGameHangResultModel.duration); + } + + @Override + public int hashCode() { + return Objects.hash(gameSession, success, code, message, hanging, startHangTimestamp, duration); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryGameHangResultModel {"); + + sb.append(",gameSession: ").append(toIndentedString(gameSession)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",code: ").append(toIndentedString(code)); + sb.append(",message: ").append(toIndentedString(message)); + sb.append(",hanging: ").append(toIndentedString(hanging)); + sb.append(",startHangTimestamp: ").append(toIndentedString(startHangTimestamp)); + sb.append(",duration: ").append(toIndentedString(duration)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveForms.java new file mode 100644 index 000000000..79bea0f6a --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveForms.java @@ -0,0 +1,122 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * SetGameAliveForms + */ +public class SetGameAliveForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String gameSession = null; + + + private String appKey = null; + + + private Long keepAlive = null; + + + public SetGameAliveForms gameSession(String gameSession) { + this.gameSession = gameSession; + return this; + } + + /** + * 会话ID + * @return gameSession + **/ + public String getGameSession() { + return gameSession; + } + + public void setGameSession(String gameSession) { + this.gameSession = gameSession; + } + + public SetGameAliveForms appKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 项目应用AK + * @return appKey + **/ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public SetGameAliveForms keepAlive(Long keepAlive) { + this.keepAlive = keepAlive; + return this; + } + + /** + * 游戏可运行时长 + * @return keepAlive + **/ + public Long getKeepAlive() { + return keepAlive; + } + + public void setKeepAlive(Long keepAlive) { + this.keepAlive = keepAlive; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetGameAliveForms setGameAliveForms = (SetGameAliveForms) o; + return Objects.equals(this.gameSession, setGameAliveForms.gameSession) && + Objects.equals(this.appKey, setGameAliveForms.appKey) && + Objects.equals(this.keepAlive, setGameAliveForms.keepAlive); + } + + @Override + public int hashCode() { + return Objects.hash(gameSession, appKey, keepAlive); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetGameAliveForms {"); + + sb.append(",gameSession: ").append(toIndentedString(gameSession)); + sb.append(",appKey: ").append(toIndentedString(appKey)); + sb.append(",keepAlive: ").append(toIndentedString(keepAlive)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveResult.java new file mode 100644 index 000000000..cc8388845 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveResult.java @@ -0,0 +1,101 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.SetGameAliveResultModel; +import java.io.Serializable; +/** + * SetGameAliveResult + */ +public class SetGameAliveResult implements Serializable { + private static final long serialVersionUID = 1L; + + private Boolean success = null; + + + private SetGameAliveResultModel model = null; + + + public SetGameAliveResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public SetGameAliveResult model(SetGameAliveResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public SetGameAliveResultModel getModel() { + return model; + } + + public void setModel(SetGameAliveResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetGameAliveResult setGameAliveResult = (SetGameAliveResult) o; + return Objects.equals(this.success, setGameAliveResult.success) && + Objects.equals(this.model, setGameAliveResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetGameAliveResult {"); + + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveResultModel.java new file mode 100644 index 000000000..73c462e66 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameAliveResultModel.java @@ -0,0 +1,144 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * SetGameAliveResultModel + */ +public class SetGameAliveResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private String gameSession = null; + + + private Boolean success = null; + + + private String code = null; + + + private String message = null; + + + public SetGameAliveResultModel gameSession(String gameSession) { + this.gameSession = gameSession; + return this; + } + + /** + * 会话ID + * @return gameSession + **/ + public String getGameSession() { + return gameSession; + } + + public void setGameSession(String gameSession) { + this.gameSession = gameSession; + } + + public SetGameAliveResultModel success(Boolean success) { + this.success = success; + return this; + } + + /** + * 设置是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public SetGameAliveResultModel code(String code) { + this.code = code; + return this; + } + + /** + * 错误Code + * @return code + **/ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public SetGameAliveResultModel message(String message) { + this.message = message; + return this; + } + + /** + * 错误Message + * @return message + **/ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetGameAliveResultModel setGameAliveResultModel = (SetGameAliveResultModel) o; + return Objects.equals(this.gameSession, setGameAliveResultModel.gameSession) && + Objects.equals(this.success, setGameAliveResultModel.success) && + Objects.equals(this.code, setGameAliveResultModel.code) && + Objects.equals(this.message, setGameAliveResultModel.message); + } + + @Override + public int hashCode() { + return Objects.hash(gameSession, success, code, message); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetGameAliveResultModel {"); + + sb.append(",gameSession: ").append(toIndentedString(gameSession)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",code: ").append(toIndentedString(code)); + sb.append(",message: ").append(toIndentedString(message)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangForms.java new file mode 100644 index 000000000..30dd26a78 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangForms.java @@ -0,0 +1,122 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * SetGameHangForms + */ +public class SetGameHangForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String gameSession = null; + + + private String appKey = null; + + + private Long duration = null; + + + public SetGameHangForms gameSession(String gameSession) { + this.gameSession = gameSession; + return this; + } + + /** + * 会话ID + * @return gameSession + **/ + public String getGameSession() { + return gameSession; + } + + public void setGameSession(String gameSession) { + this.gameSession = gameSession; + } + + public SetGameHangForms appKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 项目应用AK + * @return appKey + **/ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public SetGameHangForms duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * 挂机时长 + * @return duration + **/ + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetGameHangForms setGameHangForms = (SetGameHangForms) o; + return Objects.equals(this.gameSession, setGameHangForms.gameSession) && + Objects.equals(this.appKey, setGameHangForms.appKey) && + Objects.equals(this.duration, setGameHangForms.duration); + } + + @Override + public int hashCode() { + return Objects.hash(gameSession, appKey, duration); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetGameHangForms {"); + + sb.append(",gameSession: ").append(toIndentedString(gameSession)); + sb.append(",appKey: ").append(toIndentedString(appKey)); + sb.append(",duration: ").append(toIndentedString(duration)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangResult.java new file mode 100644 index 000000000..b5577f5e0 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangResult.java @@ -0,0 +1,101 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.SetGameHangResultModel; +import java.io.Serializable; +/** + * SetGameHangResult + */ +public class SetGameHangResult implements Serializable { + private static final long serialVersionUID = 1L; + + private Boolean success = null; + + + private SetGameHangResultModel model = null; + + + public SetGameHangResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public SetGameHangResult model(SetGameHangResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public SetGameHangResultModel getModel() { + return model; + } + + public void setModel(SetGameHangResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetGameHangResult setGameHangResult = (SetGameHangResult) o; + return Objects.equals(this.success, setGameHangResult.success) && + Objects.equals(this.model, setGameHangResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetGameHangResult {"); + + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangResultModel.java new file mode 100644 index 000000000..ceea14cee --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/SetGameHangResultModel.java @@ -0,0 +1,188 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * SetGameHangResultModel + */ +public class SetGameHangResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private String gameSession = null; + + + private Boolean success = null; + + + private String code = null; + + + private String message = null; + + + private Long startHangTimestamp = null; + + + private Long duration = null; + + + public SetGameHangResultModel gameSession(String gameSession) { + this.gameSession = gameSession; + return this; + } + + /** + * 会话ID + * @return gameSession + **/ + public String getGameSession() { + return gameSession; + } + + public void setGameSession(String gameSession) { + this.gameSession = gameSession; + } + + public SetGameHangResultModel success(Boolean success) { + this.success = success; + return this; + } + + /** + * 设置是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public SetGameHangResultModel code(String code) { + this.code = code; + return this; + } + + /** + * 错误Code + * @return code + **/ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public SetGameHangResultModel message(String message) { + this.message = message; + return this; + } + + /** + * 错误Message + * @return message + **/ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public SetGameHangResultModel startHangTimestamp(Long startHangTimestamp) { + this.startHangTimestamp = startHangTimestamp; + return this; + } + + /** + * 开始挂机毫秒时间戳 + * @return startHangTimestamp + **/ + public Long getStartHangTimestamp() { + return startHangTimestamp; + } + + public void setStartHangTimestamp(Long startHangTimestamp) { + this.startHangTimestamp = startHangTimestamp; + } + + public SetGameHangResultModel duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * 挂机时长,单位:秒 + * @return duration + **/ + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetGameHangResultModel setGameHangResultModel = (SetGameHangResultModel) o; + return Objects.equals(this.gameSession, setGameHangResultModel.gameSession) && + Objects.equals(this.success, setGameHangResultModel.success) && + Objects.equals(this.code, setGameHangResultModel.code) && + Objects.equals(this.message, setGameHangResultModel.message) && + Objects.equals(this.startHangTimestamp, setGameHangResultModel.startHangTimestamp) && + Objects.equals(this.duration, setGameHangResultModel.duration); + } + + @Override + public int hashCode() { + return Objects.hash(gameSession, success, code, message, startHangTimestamp, duration); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetGameHangResultModel {"); + + sb.append(",gameSession: ").append(toIndentedString(gameSession)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",code: ").append(toIndentedString(code)); + sb.append(",message: ").append(toIndentedString(message)); + sb.append(",startHangTimestamp: ").append(toIndentedString(startHangTimestamp)); + sb.append(",duration: ").append(toIndentedString(duration)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerDeleteGameArchiveResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerDeleteGameArchiveResult.java new file mode 100644 index 000000000..44144b718 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerDeleteGameArchiveResult.java @@ -0,0 +1,145 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.UsercontollerDeleteGameArchiveResultModel; +import java.io.Serializable; +/** + * UsercontollerDeleteGameArchiveResult + */ +public class UsercontollerDeleteGameArchiveResult implements Serializable { + private static final long serialVersionUID = 1L; + + private String msgCode = null; + + + private String msgInfo = null; + + + private Boolean success = null; + + + private UsercontollerDeleteGameArchiveResultModel model = null; + + + public UsercontollerDeleteGameArchiveResult msgCode(String msgCode) { + this.msgCode = msgCode; + return this; + } + + /** + * 服务端状态码 + * @return msgCode + **/ + public String getMsgCode() { + return msgCode; + } + + public void setMsgCode(String msgCode) { + this.msgCode = msgCode; + } + + public UsercontollerDeleteGameArchiveResult msgInfo(String msgInfo) { + this.msgInfo = msgInfo; + return this; + } + + /** + * 服务端描述信息 + * @return msgInfo + **/ + public String getMsgInfo() { + return msgInfo; + } + + public void setMsgInfo(String msgInfo) { + this.msgInfo = msgInfo; + } + + public UsercontollerDeleteGameArchiveResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * 是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public UsercontollerDeleteGameArchiveResult model(UsercontollerDeleteGameArchiveResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public UsercontollerDeleteGameArchiveResultModel getModel() { + return model; + } + + public void setModel(UsercontollerDeleteGameArchiveResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerDeleteGameArchiveResult usercontollerDeleteGameArchiveResult = (UsercontollerDeleteGameArchiveResult) o; + return Objects.equals(this.msgCode, usercontollerDeleteGameArchiveResult.msgCode) && + Objects.equals(this.msgInfo, usercontollerDeleteGameArchiveResult.msgInfo) && + Objects.equals(this.success, usercontollerDeleteGameArchiveResult.success) && + Objects.equals(this.model, usercontollerDeleteGameArchiveResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(msgCode, msgInfo, success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerDeleteGameArchiveResult {"); + + sb.append(",msgCode: ").append(toIndentedString(msgCode)); + sb.append(",msgInfo: ").append(toIndentedString(msgInfo)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerDeleteGameArchiveResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerDeleteGameArchiveResultModel.java new file mode 100644 index 000000000..69d7865a0 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerDeleteGameArchiveResultModel.java @@ -0,0 +1,78 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontollerDeleteGameArchiveResultModel + */ +public class UsercontollerDeleteGameArchiveResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private Integer status = null; + + + public UsercontollerDeleteGameArchiveResultModel status(Integer status) { + this.status = status; + return this; + } + + /** + * 状态 + * @return status + **/ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerDeleteGameArchiveResultModel usercontollerDeleteGameArchiveResultModel = (UsercontollerDeleteGameArchiveResultModel) o; + return Objects.equals(this.status, usercontollerDeleteGameArchiveResultModel.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerDeleteGameArchiveResultModel {"); + + sb.append(",status: ").append(toIndentedString(status)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResult.java new file mode 100644 index 000000000..72288174d --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResult.java @@ -0,0 +1,145 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.UsercontollerGetGameTrialSurplusDurationResultModel; +import java.io.Serializable; +/** + * UsercontollerGetGameTrialSurplusDurationResult + */ +public class UsercontollerGetGameTrialSurplusDurationResult implements Serializable { + private static final long serialVersionUID = 1L; + + private String msgCode = null; + + + private String msgInfo = null; + + + private Boolean success = null; + + + private UsercontollerGetGameTrialSurplusDurationResultModel model = null; + + + public UsercontollerGetGameTrialSurplusDurationResult msgCode(String msgCode) { + this.msgCode = msgCode; + return this; + } + + /** + * 服务端状态码 + * @return msgCode + **/ + public String getMsgCode() { + return msgCode; + } + + public void setMsgCode(String msgCode) { + this.msgCode = msgCode; + } + + public UsercontollerGetGameTrialSurplusDurationResult msgInfo(String msgInfo) { + this.msgInfo = msgInfo; + return this; + } + + /** + * 服务端描述信息 + * @return msgInfo + **/ + public String getMsgInfo() { + return msgInfo; + } + + public void setMsgInfo(String msgInfo) { + this.msgInfo = msgInfo; + } + + public UsercontollerGetGameTrialSurplusDurationResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * 是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public UsercontollerGetGameTrialSurplusDurationResult model(UsercontollerGetGameTrialSurplusDurationResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public UsercontollerGetGameTrialSurplusDurationResultModel getModel() { + return model; + } + + public void setModel(UsercontollerGetGameTrialSurplusDurationResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerGetGameTrialSurplusDurationResult usercontollerGetGameTrialSurplusDurationResult = (UsercontollerGetGameTrialSurplusDurationResult) o; + return Objects.equals(this.msgCode, usercontollerGetGameTrialSurplusDurationResult.msgCode) && + Objects.equals(this.msgInfo, usercontollerGetGameTrialSurplusDurationResult.msgInfo) && + Objects.equals(this.success, usercontollerGetGameTrialSurplusDurationResult.success) && + Objects.equals(this.model, usercontollerGetGameTrialSurplusDurationResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(msgCode, msgInfo, success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerGetGameTrialSurplusDurationResult {"); + + sb.append(",msgCode: ").append(toIndentedString(msgCode)); + sb.append(",msgInfo: ").append(toIndentedString(msgInfo)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResultModel.java new file mode 100644 index 000000000..9f810da5c --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResultModel.java @@ -0,0 +1,89 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; +/** + * UsercontollerGetGameTrialSurplusDurationResultModel + */ +public class UsercontollerGetGameTrialSurplusDurationResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private List trialPolicyResponses = null; + + + public UsercontollerGetGameTrialSurplusDurationResultModel trialPolicyResponses(List trialPolicyResponses) { + this.trialPolicyResponses = trialPolicyResponses; + return this; + } + + public UsercontollerGetGameTrialSurplusDurationResultModel addTrialPolicyResponsesItem(UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses trialPolicyResponsesItem) { + if (this.trialPolicyResponses == null) { + this.trialPolicyResponses = new ArrayList(); + } + this.trialPolicyResponses.add(trialPolicyResponsesItem); + return this; + } + + /** + * 命中的策略列表 + * @return trialPolicyResponses + **/ + public List getTrialPolicyResponses() { + return trialPolicyResponses; + } + + public void setTrialPolicyResponses(List trialPolicyResponses) { + this.trialPolicyResponses = trialPolicyResponses; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerGetGameTrialSurplusDurationResultModel usercontollerGetGameTrialSurplusDurationResultModel = (UsercontollerGetGameTrialSurplusDurationResultModel) o; + return Objects.equals(this.trialPolicyResponses, usercontollerGetGameTrialSurplusDurationResultModel.trialPolicyResponses); + } + + @Override + public int hashCode() { + return Objects.hash(trialPolicyResponses); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerGetGameTrialSurplusDurationResultModel {"); + + sb.append(",trialPolicyResponses: ").append(toIndentedString(trialPolicyResponses)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.java new file mode 100644 index 000000000..a73b48d2e --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.java @@ -0,0 +1,100 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses + */ +public class UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses implements Serializable { + private static final long serialVersionUID = 1L; + + private Long surplusDurationInSecond = null; + + + private String policyType = null; + + + public UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses surplusDurationInSecond(Long surplusDurationInSecond) { + this.surplusDurationInSecond = surplusDurationInSecond; + return this; + } + + /** + * 剩余试玩时长 + * @return surplusDurationInSecond + **/ + public Long getSurplusDurationInSecond() { + return surplusDurationInSecond; + } + + public void setSurplusDurationInSecond(Long surplusDurationInSecond) { + this.surplusDurationInSecond = surplusDurationInSecond; + } + + public UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses policyType(String policyType) { + this.policyType = policyType; + return this; + } + + /** + * 策略类型 + * @return policyType + **/ + public String getPolicyType() { + return policyType; + } + + public void setPolicyType(String policyType) { + this.policyType = policyType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses usercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses = (UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses) o; + return Objects.equals(this.surplusDurationInSecond, usercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.surplusDurationInSecond) && + Objects.equals(this.policyType, usercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.policyType); + } + + @Override + public int hashCode() { + return Objects.hash(surplusDurationInSecond, policyType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses {"); + + sb.append(",surplusDurationInSecond: ").append(toIndentedString(surplusDurationInSecond)); + sb.append(",policyType: ").append(toIndentedString(policyType)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResult.java new file mode 100644 index 000000000..12e5897c2 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResult.java @@ -0,0 +1,145 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.UsercontollerListLatestGameArchiveResultModel; +import java.io.Serializable; +/** + * UsercontollerListLatestGameArchiveResult + */ +public class UsercontollerListLatestGameArchiveResult implements Serializable { + private static final long serialVersionUID = 1L; + + private String msgCode = null; + + + private String msgInfo = null; + + + private Boolean success = null; + + + private UsercontollerListLatestGameArchiveResultModel model = null; + + + public UsercontollerListLatestGameArchiveResult msgCode(String msgCode) { + this.msgCode = msgCode; + return this; + } + + /** + * 服务端状态码 + * @return msgCode + **/ + public String getMsgCode() { + return msgCode; + } + + public void setMsgCode(String msgCode) { + this.msgCode = msgCode; + } + + public UsercontollerListLatestGameArchiveResult msgInfo(String msgInfo) { + this.msgInfo = msgInfo; + return this; + } + + /** + * 服务端描述信息 + * @return msgInfo + **/ + public String getMsgInfo() { + return msgInfo; + } + + public void setMsgInfo(String msgInfo) { + this.msgInfo = msgInfo; + } + + public UsercontollerListLatestGameArchiveResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * 是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public UsercontollerListLatestGameArchiveResult model(UsercontollerListLatestGameArchiveResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public UsercontollerListLatestGameArchiveResultModel getModel() { + return model; + } + + public void setModel(UsercontollerListLatestGameArchiveResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerListLatestGameArchiveResult usercontollerListLatestGameArchiveResult = (UsercontollerListLatestGameArchiveResult) o; + return Objects.equals(this.msgCode, usercontollerListLatestGameArchiveResult.msgCode) && + Objects.equals(this.msgInfo, usercontollerListLatestGameArchiveResult.msgInfo) && + Objects.equals(this.success, usercontollerListLatestGameArchiveResult.success) && + Objects.equals(this.model, usercontollerListLatestGameArchiveResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(msgCode, msgInfo, success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerListLatestGameArchiveResult {"); + + sb.append(",msgCode: ").append(toIndentedString(msgCode)); + sb.append(",msgInfo: ").append(toIndentedString(msgInfo)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResultModel.java new file mode 100644 index 000000000..edf76f01d --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResultModel.java @@ -0,0 +1,177 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.UsercontollerListLatestGameArchiveResultModelItems; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; +/** + * UsercontollerListLatestGameArchiveResultModel + */ +public class UsercontollerListLatestGameArchiveResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private Integer totalCount = null; + + + private Integer pageSize = null; + + + private Integer pageNumber = null; + + + private String requestId = null; + + + private List items = null; + + + public UsercontollerListLatestGameArchiveResultModel totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 总数 + * @return totalCount + **/ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public UsercontollerListLatestGameArchiveResultModel pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 分页数量 + * @return pageSize + **/ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public UsercontollerListLatestGameArchiveResultModel pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * 当前页码 + * @return pageNumber + **/ + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public UsercontollerListLatestGameArchiveResultModel requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * id of the request + * @return requestId + **/ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public UsercontollerListLatestGameArchiveResultModel items(List items) { + this.items = items; + return this; + } + + public UsercontollerListLatestGameArchiveResultModel addItemsItem(UsercontollerListLatestGameArchiveResultModelItems itemsItem) { + if (this.items == null) { + this.items = new ArrayList(); + } + this.items.add(itemsItem); + return this; + } + + /** + * 存档数据列表 + * @return items + **/ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerListLatestGameArchiveResultModel usercontollerListLatestGameArchiveResultModel = (UsercontollerListLatestGameArchiveResultModel) o; + return Objects.equals(this.totalCount, usercontollerListLatestGameArchiveResultModel.totalCount) && + Objects.equals(this.pageSize, usercontollerListLatestGameArchiveResultModel.pageSize) && + Objects.equals(this.pageNumber, usercontollerListLatestGameArchiveResultModel.pageNumber) && + Objects.equals(this.requestId, usercontollerListLatestGameArchiveResultModel.requestId) && + Objects.equals(this.items, usercontollerListLatestGameArchiveResultModel.items); + } + + @Override + public int hashCode() { + return Objects.hash(totalCount, pageSize, pageNumber, requestId, items); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerListLatestGameArchiveResultModel {"); + + sb.append(",totalCount: ").append(toIndentedString(totalCount)); + sb.append(",pageSize: ").append(toIndentedString(pageSize)); + sb.append(",pageNumber: ").append(toIndentedString(pageNumber)); + sb.append(",requestId: ").append(toIndentedString(requestId)); + sb.append(",items: ").append(toIndentedString(items)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResultModelItems.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResultModelItems.java new file mode 100644 index 000000000..b3d681866 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerListLatestGameArchiveResultModelItems.java @@ -0,0 +1,166 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontollerListLatestGameArchiveResultModelItems + */ +public class UsercontollerListLatestGameArchiveResultModelItems implements Serializable { + private static final long serialVersionUID = 1L; + + private String accountId = null; + + + private String gameId = null; + + + private String archiveId = null; + + + private Long archiveTime = null; + + + private Integer tagStatus = null; + + + public UsercontollerListLatestGameArchiveResultModelItems accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * 用户ID + * @return accountId + **/ + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public UsercontollerListLatestGameArchiveResultModelItems gameId(String gameId) { + this.gameId = gameId; + return this; + } + + /** + * 游戏ID + * @return gameId + **/ + public String getGameId() { + return gameId; + } + + public void setGameId(String gameId) { + this.gameId = gameId; + } + + public UsercontollerListLatestGameArchiveResultModelItems archiveId(String archiveId) { + this.archiveId = archiveId; + return this; + } + + /** + * 存档ID + * @return archiveId + **/ + public String getArchiveId() { + return archiveId; + } + + public void setArchiveId(String archiveId) { + this.archiveId = archiveId; + } + + public UsercontollerListLatestGameArchiveResultModelItems archiveTime(Long archiveTime) { + this.archiveTime = archiveTime; + return this; + } + + /** + * 存档时间,时间戳 + * @return archiveTime + **/ + public Long getArchiveTime() { + return archiveTime; + } + + public void setArchiveTime(Long archiveTime) { + this.archiveTime = archiveTime; + } + + public UsercontollerListLatestGameArchiveResultModelItems tagStatus(Integer tagStatus) { + this.tagStatus = tagStatus; + return this; + } + + /** + * 打标状态 + * @return tagStatus + **/ + public Integer getTagStatus() { + return tagStatus; + } + + public void setTagStatus(Integer tagStatus) { + this.tagStatus = tagStatus; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerListLatestGameArchiveResultModelItems usercontollerListLatestGameArchiveResultModelItems = (UsercontollerListLatestGameArchiveResultModelItems) o; + return Objects.equals(this.accountId, usercontollerListLatestGameArchiveResultModelItems.accountId) && + Objects.equals(this.gameId, usercontollerListLatestGameArchiveResultModelItems.gameId) && + Objects.equals(this.archiveId, usercontollerListLatestGameArchiveResultModelItems.archiveId) && + Objects.equals(this.archiveTime, usercontollerListLatestGameArchiveResultModelItems.archiveTime) && + Objects.equals(this.tagStatus, usercontollerListLatestGameArchiveResultModelItems.tagStatus); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, gameId, archiveId, archiveTime, tagStatus); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerListLatestGameArchiveResultModelItems {"); + + sb.append(",accountId: ").append(toIndentedString(accountId)); + sb.append(",gameId: ").append(toIndentedString(gameId)); + sb.append(",archiveId: ").append(toIndentedString(archiveId)); + sb.append(",archiveTime: ").append(toIndentedString(archiveTime)); + sb.append(",tagStatus: ").append(toIndentedString(tagStatus)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerRestoreGameArchiveResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerRestoreGameArchiveResult.java new file mode 100644 index 000000000..d7c941c7e --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerRestoreGameArchiveResult.java @@ -0,0 +1,145 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.UsercontollerRestoreGameArchiveResultModel; +import java.io.Serializable; +/** + * UsercontollerRestoreGameArchiveResult + */ +public class UsercontollerRestoreGameArchiveResult implements Serializable { + private static final long serialVersionUID = 1L; + + private String msgCode = null; + + + private String msgInfo = null; + + + private Boolean success = null; + + + private UsercontollerRestoreGameArchiveResultModel model = null; + + + public UsercontollerRestoreGameArchiveResult msgCode(String msgCode) { + this.msgCode = msgCode; + return this; + } + + /** + * 服务端状态码 + * @return msgCode + **/ + public String getMsgCode() { + return msgCode; + } + + public void setMsgCode(String msgCode) { + this.msgCode = msgCode; + } + + public UsercontollerRestoreGameArchiveResult msgInfo(String msgInfo) { + this.msgInfo = msgInfo; + return this; + } + + /** + * 服务端描述信息 + * @return msgInfo + **/ + public String getMsgInfo() { + return msgInfo; + } + + public void setMsgInfo(String msgInfo) { + this.msgInfo = msgInfo; + } + + public UsercontollerRestoreGameArchiveResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * 是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public UsercontollerRestoreGameArchiveResult model(UsercontollerRestoreGameArchiveResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public UsercontollerRestoreGameArchiveResultModel getModel() { + return model; + } + + public void setModel(UsercontollerRestoreGameArchiveResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerRestoreGameArchiveResult usercontollerRestoreGameArchiveResult = (UsercontollerRestoreGameArchiveResult) o; + return Objects.equals(this.msgCode, usercontollerRestoreGameArchiveResult.msgCode) && + Objects.equals(this.msgInfo, usercontollerRestoreGameArchiveResult.msgInfo) && + Objects.equals(this.success, usercontollerRestoreGameArchiveResult.success) && + Objects.equals(this.model, usercontollerRestoreGameArchiveResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(msgCode, msgInfo, success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerRestoreGameArchiveResult {"); + + sb.append(",msgCode: ").append(toIndentedString(msgCode)); + sb.append(",msgInfo: ").append(toIndentedString(msgInfo)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerRestoreGameArchiveResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerRestoreGameArchiveResultModel.java new file mode 100644 index 000000000..dbeb8add4 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerRestoreGameArchiveResultModel.java @@ -0,0 +1,78 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontollerRestoreGameArchiveResultModel + */ +public class UsercontollerRestoreGameArchiveResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private Integer status = null; + + + public UsercontollerRestoreGameArchiveResultModel status(Integer status) { + this.status = status; + return this; + } + + /** + * 状态 + * @return status + **/ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerRestoreGameArchiveResultModel usercontollerRestoreGameArchiveResultModel = (UsercontollerRestoreGameArchiveResultModel) o; + return Objects.equals(this.status, usercontollerRestoreGameArchiveResultModel.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerRestoreGameArchiveResultModel {"); + + sb.append(",status: ").append(toIndentedString(status)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerUpdateGameArchiveTagStatusResult.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerUpdateGameArchiveTagStatusResult.java new file mode 100644 index 000000000..a582a9788 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerUpdateGameArchiveTagStatusResult.java @@ -0,0 +1,145 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.alibaba.yjopenapi.client.model.UsercontollerUpdateGameArchiveTagStatusResultModel; +import java.io.Serializable; +/** + * UsercontollerUpdateGameArchiveTagStatusResult + */ +public class UsercontollerUpdateGameArchiveTagStatusResult implements Serializable { + private static final long serialVersionUID = 1L; + + private String msgCode = null; + + + private String msgInfo = null; + + + private Boolean success = null; + + + private UsercontollerUpdateGameArchiveTagStatusResultModel model = null; + + + public UsercontollerUpdateGameArchiveTagStatusResult msgCode(String msgCode) { + this.msgCode = msgCode; + return this; + } + + /** + * 服务端状态码 + * @return msgCode + **/ + public String getMsgCode() { + return msgCode; + } + + public void setMsgCode(String msgCode) { + this.msgCode = msgCode; + } + + public UsercontollerUpdateGameArchiveTagStatusResult msgInfo(String msgInfo) { + this.msgInfo = msgInfo; + return this; + } + + /** + * 服务端描述信息 + * @return msgInfo + **/ + public String getMsgInfo() { + return msgInfo; + } + + public void setMsgInfo(String msgInfo) { + this.msgInfo = msgInfo; + } + + public UsercontollerUpdateGameArchiveTagStatusResult success(Boolean success) { + this.success = success; + return this; + } + + /** + * 是否成功 + * @return success + **/ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public UsercontollerUpdateGameArchiveTagStatusResult model(UsercontollerUpdateGameArchiveTagStatusResultModel model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + public UsercontollerUpdateGameArchiveTagStatusResultModel getModel() { + return model; + } + + public void setModel(UsercontollerUpdateGameArchiveTagStatusResultModel model) { + this.model = model; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerUpdateGameArchiveTagStatusResult usercontollerUpdateGameArchiveTagStatusResult = (UsercontollerUpdateGameArchiveTagStatusResult) o; + return Objects.equals(this.msgCode, usercontollerUpdateGameArchiveTagStatusResult.msgCode) && + Objects.equals(this.msgInfo, usercontollerUpdateGameArchiveTagStatusResult.msgInfo) && + Objects.equals(this.success, usercontollerUpdateGameArchiveTagStatusResult.success) && + Objects.equals(this.model, usercontollerUpdateGameArchiveTagStatusResult.model); + } + + @Override + public int hashCode() { + return Objects.hash(msgCode, msgInfo, success, model); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerUpdateGameArchiveTagStatusResult {"); + + sb.append(",msgCode: ").append(toIndentedString(msgCode)); + sb.append(",msgInfo: ").append(toIndentedString(msgInfo)); + sb.append(",success: ").append(toIndentedString(success)); + sb.append(",model: ").append(toIndentedString(model)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerUpdateGameArchiveTagStatusResultModel.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerUpdateGameArchiveTagStatusResultModel.java new file mode 100644 index 000000000..d9470ad20 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontollerUpdateGameArchiveTagStatusResultModel.java @@ -0,0 +1,78 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontollerUpdateGameArchiveTagStatusResultModel + */ +public class UsercontollerUpdateGameArchiveTagStatusResultModel implements Serializable { + private static final long serialVersionUID = 1L; + + private Integer status = null; + + + public UsercontollerUpdateGameArchiveTagStatusResultModel status(Integer status) { + this.status = status; + return this; + } + + /** + * 状态 + * @return status + **/ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontollerUpdateGameArchiveTagStatusResultModel usercontollerUpdateGameArchiveTagStatusResultModel = (UsercontollerUpdateGameArchiveTagStatusResultModel) o; + return Objects.equals(this.status, usercontollerUpdateGameArchiveTagStatusResultModel.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontollerUpdateGameArchiveTagStatusResultModel {"); + + sb.append(",status: ").append(toIndentedString(status)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerDeleteGameArchiveForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerDeleteGameArchiveForms.java new file mode 100644 index 000000000..063bf0522 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerDeleteGameArchiveForms.java @@ -0,0 +1,122 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontrollerDeleteGameArchiveForms + */ +public class UsercontrollerDeleteGameArchiveForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String accountId = null; + + + private String gameId = null; + + + private String archiveId = null; + + + public UsercontrollerDeleteGameArchiveForms accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * 用户id + * @return accountId + **/ + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public UsercontrollerDeleteGameArchiveForms gameId(String gameId) { + this.gameId = gameId; + return this; + } + + /** + * 游戏Id + * @return gameId + **/ + public String getGameId() { + return gameId; + } + + public void setGameId(String gameId) { + this.gameId = gameId; + } + + public UsercontrollerDeleteGameArchiveForms archiveId(String archiveId) { + this.archiveId = archiveId; + return this; + } + + /** + * 存档ID + * @return archiveId + **/ + public String getArchiveId() { + return archiveId; + } + + public void setArchiveId(String archiveId) { + this.archiveId = archiveId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontrollerDeleteGameArchiveForms usercontrollerDeleteGameArchiveForms = (UsercontrollerDeleteGameArchiveForms) o; + return Objects.equals(this.accountId, usercontrollerDeleteGameArchiveForms.accountId) && + Objects.equals(this.gameId, usercontrollerDeleteGameArchiveForms.gameId) && + Objects.equals(this.archiveId, usercontrollerDeleteGameArchiveForms.archiveId); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, gameId, archiveId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontrollerDeleteGameArchiveForms {"); + + sb.append(",accountId: ").append(toIndentedString(accountId)); + sb.append(",gameId: ").append(toIndentedString(gameId)); + sb.append(",archiveId: ").append(toIndentedString(archiveId)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerGetGameTrialSurplusDurationForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerGetGameTrialSurplusDurationForms.java new file mode 100644 index 000000000..20c147505 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerGetGameTrialSurplusDurationForms.java @@ -0,0 +1,122 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontrollerGetGameTrialSurplusDurationForms + */ +public class UsercontrollerGetGameTrialSurplusDurationForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String accountId = null; + + + private String gameId = null; + + + private String projectId = null; + + + public UsercontrollerGetGameTrialSurplusDurationForms accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * 用户id + * @return accountId + **/ + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public UsercontrollerGetGameTrialSurplusDurationForms gameId(String gameId) { + this.gameId = gameId; + return this; + } + + /** + * 游戏Id + * @return gameId + **/ + public String getGameId() { + return gameId; + } + + public void setGameId(String gameId) { + this.gameId = gameId; + } + + public UsercontrollerGetGameTrialSurplusDurationForms projectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID + * @return projectId + **/ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontrollerGetGameTrialSurplusDurationForms usercontrollerGetGameTrialSurplusDurationForms = (UsercontrollerGetGameTrialSurplusDurationForms) o; + return Objects.equals(this.accountId, usercontrollerGetGameTrialSurplusDurationForms.accountId) && + Objects.equals(this.gameId, usercontrollerGetGameTrialSurplusDurationForms.gameId) && + Objects.equals(this.projectId, usercontrollerGetGameTrialSurplusDurationForms.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, gameId, projectId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontrollerGetGameTrialSurplusDurationForms {"); + + sb.append(",accountId: ").append(toIndentedString(accountId)); + sb.append(",gameId: ").append(toIndentedString(gameId)); + sb.append(",projectId: ").append(toIndentedString(projectId)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerListLatestGameArchiveForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerListLatestGameArchiveForms.java new file mode 100644 index 000000000..0dd948e4f --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerListLatestGameArchiveForms.java @@ -0,0 +1,166 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontrollerListLatestGameArchiveForms + */ +public class UsercontrollerListLatestGameArchiveForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String accountId = null; + + + private String gameId = null; + + + private Integer pageSize = null; + + + private Integer pageNumber = null; + + + private Integer tagStatus = null; + + + public UsercontrollerListLatestGameArchiveForms accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * 用户id + * @return accountId + **/ + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public UsercontrollerListLatestGameArchiveForms gameId(String gameId) { + this.gameId = gameId; + return this; + } + + /** + * 游戏Id + * @return gameId + **/ + public String getGameId() { + return gameId; + } + + public void setGameId(String gameId) { + this.gameId = gameId; + } + + public UsercontrollerListLatestGameArchiveForms pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页数量 + * @return pageSize + **/ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public UsercontrollerListLatestGameArchiveForms pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * 页码 + * @return pageNumber + **/ + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public UsercontrollerListLatestGameArchiveForms tagStatus(Integer tagStatus) { + this.tagStatus = tagStatus; + return this; + } + + /** + * 打标状态,1为打标,0为非打标 + * @return tagStatus + **/ + public Integer getTagStatus() { + return tagStatus; + } + + public void setTagStatus(Integer tagStatus) { + this.tagStatus = tagStatus; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontrollerListLatestGameArchiveForms usercontrollerListLatestGameArchiveForms = (UsercontrollerListLatestGameArchiveForms) o; + return Objects.equals(this.accountId, usercontrollerListLatestGameArchiveForms.accountId) && + Objects.equals(this.gameId, usercontrollerListLatestGameArchiveForms.gameId) && + Objects.equals(this.pageSize, usercontrollerListLatestGameArchiveForms.pageSize) && + Objects.equals(this.pageNumber, usercontrollerListLatestGameArchiveForms.pageNumber) && + Objects.equals(this.tagStatus, usercontrollerListLatestGameArchiveForms.tagStatus); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, gameId, pageSize, pageNumber, tagStatus); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontrollerListLatestGameArchiveForms {"); + + sb.append(",accountId: ").append(toIndentedString(accountId)); + sb.append(",gameId: ").append(toIndentedString(gameId)); + sb.append(",pageSize: ").append(toIndentedString(pageSize)); + sb.append(",pageNumber: ").append(toIndentedString(pageNumber)); + sb.append(",tagStatus: ").append(toIndentedString(tagStatus)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerRestoreGameArchiveForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerRestoreGameArchiveForms.java new file mode 100644 index 000000000..fd2cfd12f --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerRestoreGameArchiveForms.java @@ -0,0 +1,122 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontrollerRestoreGameArchiveForms + */ +public class UsercontrollerRestoreGameArchiveForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String accountId = null; + + + private String gameId = null; + + + private String archiveId = null; + + + public UsercontrollerRestoreGameArchiveForms accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * 用户id + * @return accountId + **/ + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public UsercontrollerRestoreGameArchiveForms gameId(String gameId) { + this.gameId = gameId; + return this; + } + + /** + * 游戏Id + * @return gameId + **/ + public String getGameId() { + return gameId; + } + + public void setGameId(String gameId) { + this.gameId = gameId; + } + + public UsercontrollerRestoreGameArchiveForms archiveId(String archiveId) { + this.archiveId = archiveId; + return this; + } + + /** + * 存档ID + * @return archiveId + **/ + public String getArchiveId() { + return archiveId; + } + + public void setArchiveId(String archiveId) { + this.archiveId = archiveId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontrollerRestoreGameArchiveForms usercontrollerRestoreGameArchiveForms = (UsercontrollerRestoreGameArchiveForms) o; + return Objects.equals(this.accountId, usercontrollerRestoreGameArchiveForms.accountId) && + Objects.equals(this.gameId, usercontrollerRestoreGameArchiveForms.gameId) && + Objects.equals(this.archiveId, usercontrollerRestoreGameArchiveForms.archiveId); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, gameId, archiveId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontrollerRestoreGameArchiveForms {"); + + sb.append(",accountId: ").append(toIndentedString(accountId)); + sb.append(",gameId: ").append(toIndentedString(gameId)); + sb.append(",archiveId: ").append(toIndentedString(archiveId)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +} diff --git a/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerUpdateGameArchiveTagStatusForms.java b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerUpdateGameArchiveTagStatusForms.java new file mode 100644 index 000000000..25fdc0977 --- /dev/null +++ b/src/main/java/com/alibaba/yjopenapi/client/model/UsercontrollerUpdateGameArchiveTagStatusForms.java @@ -0,0 +1,144 @@ +/* + * + * YuanJing OpenAPI SDK + * + */ + +package com.alibaba.yjopenapi.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.io.Serializable; +/** + * UsercontrollerUpdateGameArchiveTagStatusForms + */ +public class UsercontrollerUpdateGameArchiveTagStatusForms implements Serializable { + private static final long serialVersionUID = 1L; + + private String accountId = null; + + + private String gameId = null; + + + private String archiveId = null; + + + private Integer tagStatus = null; + + + public UsercontrollerUpdateGameArchiveTagStatusForms accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * 用户id + * @return accountId + **/ + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public UsercontrollerUpdateGameArchiveTagStatusForms gameId(String gameId) { + this.gameId = gameId; + return this; + } + + /** + * 游戏Id + * @return gameId + **/ + public String getGameId() { + return gameId; + } + + public void setGameId(String gameId) { + this.gameId = gameId; + } + + public UsercontrollerUpdateGameArchiveTagStatusForms archiveId(String archiveId) { + this.archiveId = archiveId; + return this; + } + + /** + * 存档ID + * @return archiveId + **/ + public String getArchiveId() { + return archiveId; + } + + public void setArchiveId(String archiveId) { + this.archiveId = archiveId; + } + + public UsercontrollerUpdateGameArchiveTagStatusForms tagStatus(Integer tagStatus) { + this.tagStatus = tagStatus; + return this; + } + + /** + * 打标状态,1为打标,0为非打标 + * @return tagStatus + **/ + public Integer getTagStatus() { + return tagStatus; + } + + public void setTagStatus(Integer tagStatus) { + this.tagStatus = tagStatus; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsercontrollerUpdateGameArchiveTagStatusForms usercontrollerUpdateGameArchiveTagStatusForms = (UsercontrollerUpdateGameArchiveTagStatusForms) o; + return Objects.equals(this.accountId, usercontrollerUpdateGameArchiveTagStatusForms.accountId) && + Objects.equals(this.gameId, usercontrollerUpdateGameArchiveTagStatusForms.gameId) && + Objects.equals(this.archiveId, usercontrollerUpdateGameArchiveTagStatusForms.archiveId) && + Objects.equals(this.tagStatus, usercontrollerUpdateGameArchiveTagStatusForms.tagStatus); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, gameId, archiveId, tagStatus); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsercontrollerUpdateGameArchiveTagStatusForms {"); + + sb.append(",accountId: ").append(toIndentedString(accountId)); + sb.append(",gameId: ").append(toIndentedString(gameId)); + sb.append(",archiveId: ").append(toIndentedString(archiveId)); + sb.append(",tagStatus: ").append(toIndentedString(tagStatus)); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString(); + } + +}