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 May 11, 2024
1 parent e12d400 commit d4a0a72
Show file tree
Hide file tree
Showing 7 changed files with 383 additions and 4 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-05-11 Version: 3.9.50
- Update to support new apis.

2024-04-29 Version: 3.9.49
- 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.49</version>
<version>3.9.50</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,106 @@
/*
* 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 com.aliyuncs.http.MethodType;
import com.aliyuncs.live.Endpoint;

/**
* @author auto create
* @version
*/
public class DescribeLiveCenterStreamRateDataRequest extends RpcAcsRequest<DescribeLiveCenterStreamRateDataResponse> {


private String startTime;

private String appName;

private String streamName;

private String domainName;

private String endTime;
public DescribeLiveCenterStreamRateDataRequest() {
super("live", "2016-11-01", "DescribeLiveCenterStreamRateData", "live");
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 getStartTime() {
return this.startTime;
}

public void setStartTime(String startTime) {
this.startTime = startTime;
if(startTime != null){
putQueryParameter("StartTime", startTime);
}
}

public String getAppName() {
return this.appName;
}

public void setAppName(String appName) {
this.appName = appName;
if(appName != null){
putQueryParameter("AppName", appName);
}
}

public String getStreamName() {
return this.streamName;
}

public void setStreamName(String streamName) {
this.streamName = streamName;
if(streamName != null){
putQueryParameter("StreamName", streamName);
}
}

public String getDomainName() {
return this.domainName;
}

public void setDomainName(String domainName) {
this.domainName = domainName;
if(domainName != null){
putQueryParameter("DomainName", domainName);
}
}

public String getEndTime() {
return this.endTime;
}

public void setEndTime(String endTime) {
this.endTime = endTime;
if(endTime != null){
putQueryParameter("EndTime", endTime);
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/*
* 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.DescribeLiveCenterStreamRateDataResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private List<Data> rateDatas;

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

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

public List<Data> getRateDatas() {
return this.rateDatas;
}

public void setRateDatas(List<Data> rateDatas) {
this.rateDatas = rateDatas;
}

public static class Data {

private String videoFps;

private String videoRate;

private String audioFps;

private String audioRate;

private String time;

public String getVideoFps() {
return this.videoFps;
}

public void setVideoFps(String videoFps) {
this.videoFps = videoFps;
}

public String getVideoRate() {
return this.videoRate;
}

public void setVideoRate(String videoRate) {
this.videoRate = videoRate;
}

public String getAudioFps() {
return this.audioFps;
}

public void setAudioFps(String audioFps) {
this.audioFps = audioFps;
}

public String getAudioRate() {
return this.audioRate;
}

public void setAudioRate(String audioRate) {
this.audioRate = audioRate;
}

public String getTime() {
return this.time;
}

public void setTime(String time) {
this.time = time;
}
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/

package com.aliyuncs.live.model.v20161101;


import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.live.transform.v20161101.ModifyLiveMessageUserInfoResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
Expand All @@ -26,6 +27,10 @@ public class ModifyLiveMessageUserInfoResponse extends AcsResponse {

private String requestId;

private List<SuccessGroups> successList;

private List<FailGroups> failList;

public String getRequestId() {
return this.requestId;
}
Expand All @@ -34,6 +39,88 @@ public void setRequestId(String requestId) {
this.requestId = requestId;
}

public List<SuccessGroups> getSuccessList() {
return this.successList;
}

public void setSuccessList(List<SuccessGroups> successList) {
this.successList = successList;
}

public List<FailGroups> getFailList() {
return this.failList;
}

public void setFailList(List<FailGroups> failList) {
this.failList = failList;
}

public static class SuccessGroups {

private String groupId;

private Boolean success;

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

public void setGroupId(String groupId) {
this.groupId = groupId;
}

public Boolean getSuccess() {
return this.success;
}

public void setSuccess(Boolean success) {
this.success = success;
}
}

public static class FailGroups {

private String groupId;

private Boolean success;

private String reason;

private Integer code;

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

public void setGroupId(String groupId) {
this.groupId = groupId;
}

public Boolean getSuccess() {
return this.success;
}

public void setSuccess(Boolean success) {
this.success = success;
}

public String getReason() {
return this.reason;
}

public void setReason(String reason) {
this.reason = reason;
}

public Integer getCode() {
return this.code;
}

public void setCode(Integer code) {
this.code = code;
}
}

@Override
public ModifyLiveMessageUserInfoResponse getInstance(UnmarshallerContext context) {
return ModifyLiveMessageUserInfoResponseUnmarshaller.unmarshall(this, context);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* 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.transform.v20161101;

import java.util.ArrayList;
import java.util.List;

import com.aliyuncs.live.model.v20161101.DescribeLiveCenterStreamRateDataResponse;
import com.aliyuncs.live.model.v20161101.DescribeLiveCenterStreamRateDataResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;


public class DescribeLiveCenterStreamRateDataResponseUnmarshaller {

public static DescribeLiveCenterStreamRateDataResponse unmarshall(DescribeLiveCenterStreamRateDataResponse describeLiveCenterStreamRateDataResponse, UnmarshallerContext _ctx) {

describeLiveCenterStreamRateDataResponse.setRequestId(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RequestId"));

List<Data> rateDatas = new ArrayList<Data>();
for (int i = 0; i < _ctx.lengthValue("DescribeLiveCenterStreamRateDataResponse.RateDatas.Length"); i++) {
Data data = new Data();
data.setVideoFps(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].VideoFps"));
data.setVideoRate(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].VideoRate"));
data.setAudioFps(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].AudioFps"));
data.setAudioRate(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].AudioRate"));
data.setTime(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].Time"));

rateDatas.add(data);
}
describeLiveCenterStreamRateDataResponse.setRateDatas(rateDatas);

return describeLiveCenterStreamRateDataResponse;
}
}
Loading

0 comments on commit d4a0a72

Please sign in to comment.