Skip to content

Commit

Permalink
Merge pull request #5 from aliyun/v1.0.x
Browse files Browse the repository at this point in the history
feat: usercontroller & gameHang
  • Loading branch information
xfslove authored Mar 2, 2023
2 parents 9baebec + 40a24f6 commit 96d77d3
Show file tree
Hide file tree
Showing 36 changed files with 5,102 additions and 3 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>alibabacloud-yjopenapi-java-client</artifactId>
<version>1.0.20230131</version>
<version>1.0.20230301</version>
</dependency>

or
<!-- independent -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>alibabacloud-yjopenapi-java-client</artifactId>
<version>1.0.20230131</version>
<version>1.0.20230301</version>
<classifier>shaded</classifier>
<exclusions>
<exclusion>
Expand Down Expand Up @@ -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* | 查询推流状态 |
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>alibabacloud-yjopenapi-java-client</artifactId>
<packaging>jar</packaging>
<name>alibabacloud-yjopenapi-java-client</name>
<version>1.0.20230131</version>
<version>1.0.20230301</version>
<url>https://github.com/aliyun/alibabacloud-yjopenapi-java-client</url>
<description>YuanJing OpenAPI SDK for Java</description>

Expand Down
456 changes: 456 additions & 0 deletions src/main/java/com/alibaba/yjopenapi/client/api/DispatchApi.java

Large diffs are not rendered by default.

533 changes: 533 additions & 0 deletions src/main/java/com/alibaba/yjopenapi/client/api/UsercontrollerApi.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -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();
}

}
Original file line number Diff line number Diff line change
@@ -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();
}

}
Loading

0 comments on commit 96d77d3

Please sign in to comment.