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 Aug 22, 2024
1 parent e72a394 commit aa7ed1b
Show file tree
Hide file tree
Showing 42 changed files with 451 additions and 2,167 deletions.
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 @@
2024-08-22 Version: 3.9.59
- Update to support new apis.

2024-08-13 Version: 3.9.58
- 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.58</version>
<version>3.9.59</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 AddLiveMessageGroupBandRequest extends RpcAcsRequest<AddLiveMessageGroupBandResponse> {


private List<String> bannedUsers;

private String groupId;

private String dataCenter;

private String appId;
public AddLiveMessageGroupBandRequest() {
super("live", "2016-11-01", "AddLiveMessageGroupBand", "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 List<String> getBannedUsers() {
return this.bannedUsers;
}

public void setBannedUsers(List<String> bannedUsers) {
this.bannedUsers = bannedUsers;
if (bannedUsers != null) {
String bannedUsersArrVal = "";
for(int depth1 = 0; depth1 < bannedUsers.size(); depth1++) {
bannedUsersArrVal += bannedUsers.get(depth1) + ",";
}
if (bannedUsersArrVal.length() > 0) {
bannedUsersArrVal = bannedUsersArrVal.substring(0, bannedUsersArrVal.length() - 1);
}
putQueryParameter("BannedUsers" , bannedUsersArrVal);
}
}

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 String getAppId() {
return this.appId;
}

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

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
package com.aliyuncs.live.model.v20161101;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.live.transform.v20161101.SetCasterSyncGroupResponseUnmarshaller;
import com.aliyuncs.live.transform.v20161101.AddLiveMessageGroupBandResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

Expand All @@ -35,7 +35,12 @@ public void setRequestId(String requestId) {
}

@Override
public SetCasterSyncGroupResponse getInstance(UnmarshallerContext context) {
return SetCasterSyncGroupResponseUnmarshaller.unmarshall(this, context);
public AddLiveMessageGroupBandResponse getInstance(UnmarshallerContext context) {
return AddLiveMessageGroupBandResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
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 BanLiveMessageGroupRequest extends RpcAcsRequest<BanLiveMessageGroupResponse> {


private String groupId;

private List<String> exceptUsers;

private String dataCenter;

private String appId;
public BanLiveMessageGroupRequest() {
super("live", "2016-11-01", "BanLiveMessageGroup", "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 List<String> getExceptUsers() {
return this.exceptUsers;
}

public void setExceptUsers(List<String> exceptUsers) {
this.exceptUsers = exceptUsers;
if (exceptUsers != null) {
String exceptUsersArrVal = "";
for(int depth1 = 0; depth1 < exceptUsers.size(); depth1++) {
exceptUsersArrVal += exceptUsers.get(depth1) + ",";
}
if (exceptUsersArrVal.length() > 0) {
exceptUsersArrVal = exceptUsersArrVal.substring(0, exceptUsersArrVal.length() - 1);
}
putQueryParameter("ExceptUsers" , exceptUsersArrVal);
}
}

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

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

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

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

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
package com.aliyuncs.live.model.v20161101;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.live.transform.v20161101.SetCasterTimedEventResponseUnmarshaller;
import com.aliyuncs.live.transform.v20161101.BanLiveMessageGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

Expand All @@ -35,7 +35,12 @@ public void setRequestId(String requestId) {
}

@Override
public SetCasterTimedEventResponse getInstance(UnmarshallerContext context) {
return SetCasterTimedEventResponseUnmarshaller.unmarshall(this, context);
public BanLiveMessageGroupResponse getInstance(UnmarshallerContext context) {
return BanLiveMessageGroupResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class CreateCasterRequest extends RpcAcsRequest<CreateCasterResponse> {

private String clientToken;

private String resourceGroupId;

private String casterName;

private String casterTemplate;
Expand Down Expand Up @@ -60,6 +62,17 @@ public void setClientToken(String clientToken) {
}
}

public String getResourceGroupId() {
return this.resourceGroupId;
}

public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}

public String getCasterName() {
return this.casterName;
}
Expand Down
Loading

0 comments on commit aa7ed1b

Please sign in to comment.