Skip to content

Commit

Permalink
Update to support new apis.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 30, 2023
1 parent 0892d06 commit 969c3f7
Show file tree
Hide file tree
Showing 65 changed files with 4,879 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-live/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-10-30 Version: 3.9.40
- Update to support new apis.

2023-10-18 Version: 3.9.39
- Update to support new apis.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-live/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-live</artifactId>
<packaging>jar</packaging>
<version>3.9.39</version>
<version>3.9.40</version>
<name>aliyun-java-sdk-live</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.live.model.v20161101;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.live.Endpoint;

/**
* @author auto create
* @version
*/
public class CheckLiveMessageUsersInGroupRequest extends RpcAcsRequest<CheckLiveMessageUsersInGroupResponse> {


private String groupId;

private String dataCenter;

private List<String> userIds;

private String appId;
public CheckLiveMessageUsersInGroupRequest() {
super("live", "2016-11-01", "CheckLiveMessageUsersInGroup", "live");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getGroupId() {
return this.groupId;
}

public void setGroupId(String groupId) {
this.groupId = groupId;
if(groupId != null){
putQueryParameter("GroupId", groupId);
}
}

public String getDataCenter() {
return this.dataCenter;
}

public void setDataCenter(String dataCenter) {
this.dataCenter = dataCenter;
if(dataCenter != null){
putQueryParameter("DataCenter", dataCenter);
}
}

public List<String> getUserIds() {
return this.userIds;
}

public void setUserIds(List<String> userIds) {
this.userIds = userIds;
if (userIds != null) {
String userIdsArrVal = "";
for(int depth1 = 0; depth1 < userIds.size(); depth1++) {
userIdsArrVal += userIds.get(depth1) + ",";
}
if (userIdsArrVal.length() > 0) {
userIdsArrVal = userIdsArrVal.substring(0, userIdsArrVal.length() - 1);
}
putQueryParameter("UserIds" , userIdsArrVal);
}
}

public String getAppId() {
return this.appId;
}

public void setAppId(String appId) {
this.appId = appId;
if(appId != null){
putQueryParameter("AppId", appId);
}
}

@Override
public Class<CheckLiveMessageUsersInGroupResponse> getResponseClass() {
return CheckLiveMessageUsersInGroupResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.live.model.v20161101;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.live.transform.v20161101.CheckLiveMessageUsersInGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class CheckLiveMessageUsersInGroupResponse extends AcsResponse {

private String requestId;

private List<UsersItem> users;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public List<UsersItem> getUsers() {
return this.users;
}

public void setUsers(List<UsersItem> users) {
this.users = users;
}

public static class UsersItem {

private String userId;

private Boolean online;

public String getUserId() {
return this.userId;
}

public void setUserId(String userId) {
this.userId = userId;
}

public Boolean getOnline() {
return this.online;
}

public void setOnline(Boolean online) {
this.online = online;
}
}

@Override
public CheckLiveMessageUsersInGroupResponse getInstance(UnmarshallerContext context) {
return CheckLiveMessageUsersInGroupResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.live.model.v20161101;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.live.Endpoint;

/**
* @author auto create
* @version
*/
public class CheckLiveMessageUsersOnlineRequest extends RpcAcsRequest<CheckLiveMessageUsersOnlineResponse> {


private String dataCenter;

private List<String> userIds;

private String appId;
public CheckLiveMessageUsersOnlineRequest() {
super("live", "2016-11-01", "CheckLiveMessageUsersOnline", "live");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getDataCenter() {
return this.dataCenter;
}

public void setDataCenter(String dataCenter) {
this.dataCenter = dataCenter;
if(dataCenter != null){
putQueryParameter("DataCenter", dataCenter);
}
}

public List<String> getUserIds() {
return this.userIds;
}

public void setUserIds(List<String> userIds) {
this.userIds = userIds;
if (userIds != null) {
String userIdsArrVal = "";
for(int depth1 = 0; depth1 < userIds.size(); depth1++) {
userIdsArrVal += userIds.get(depth1) + ",";
}
if (userIdsArrVal.length() > 0) {
userIdsArrVal = userIdsArrVal.substring(0, userIdsArrVal.length() - 1);
}
putQueryParameter("UserIds" , userIdsArrVal);
}
}

public String getAppId() {
return this.appId;
}

public void setAppId(String appId) {
this.appId = appId;
if(appId != null){
putQueryParameter("AppId", appId);
}
}

@Override
public Class<CheckLiveMessageUsersOnlineResponse> getResponseClass() {
return CheckLiveMessageUsersOnlineResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.live.model.v20161101;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.live.transform.v20161101.CheckLiveMessageUsersOnlineResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class CheckLiveMessageUsersOnlineResponse extends AcsResponse {

private String requestId;

private List<Users> userList;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public List<Users> getUserList() {
return this.userList;
}

public void setUserList(List<Users> userList) {
this.userList = userList;
}

public static class Users {

private String userId;

private Boolean online;

public String getUserId() {
return this.userId;
}

public void setUserId(String userId) {
this.userId = userId;
}

public Boolean getOnline() {
return this.online;
}

public void setOnline(Boolean online) {
this.online = online;
}
}

@Override
public CheckLiveMessageUsersOnlineResponse getInstance(UnmarshallerContext context) {
return CheckLiveMessageUsersOnlineResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit 969c3f7

Please sign in to comment.