Skip to content

Commit d4a0a72

Browse files
committed
Update to support new apis.
1 parent e12d400 commit d4a0a72

File tree

7 files changed

+383
-4
lines changed

7 files changed

+383
-4
lines changed

aliyun-java-sdk-live/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-05-11 Version: 3.9.50
2+
- Update to support new apis.
3+
14
2024-04-29 Version: 3.9.49
25
- Update to support new apis.
36

aliyun-java-sdk-live/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-live</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.9.49</version>
7+
<version>3.9.50</version>
88
<name>aliyun-java-sdk-live</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.live.model.v20161101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.live.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DescribeLiveCenterStreamRateDataRequest extends RpcAcsRequest<DescribeLiveCenterStreamRateDataResponse> {
26+
27+
28+
private String startTime;
29+
30+
private String appName;
31+
32+
private String streamName;
33+
34+
private String domainName;
35+
36+
private String endTime;
37+
public DescribeLiveCenterStreamRateDataRequest() {
38+
super("live", "2016-11-01", "DescribeLiveCenterStreamRateData", "live");
39+
setMethod(MethodType.POST);
40+
try {
41+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
42+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
43+
} catch (Exception e) {}
44+
}
45+
46+
public String getStartTime() {
47+
return this.startTime;
48+
}
49+
50+
public void setStartTime(String startTime) {
51+
this.startTime = startTime;
52+
if(startTime != null){
53+
putQueryParameter("StartTime", startTime);
54+
}
55+
}
56+
57+
public String getAppName() {
58+
return this.appName;
59+
}
60+
61+
public void setAppName(String appName) {
62+
this.appName = appName;
63+
if(appName != null){
64+
putQueryParameter("AppName", appName);
65+
}
66+
}
67+
68+
public String getStreamName() {
69+
return this.streamName;
70+
}
71+
72+
public void setStreamName(String streamName) {
73+
this.streamName = streamName;
74+
if(streamName != null){
75+
putQueryParameter("StreamName", streamName);
76+
}
77+
}
78+
79+
public String getDomainName() {
80+
return this.domainName;
81+
}
82+
83+
public void setDomainName(String domainName) {
84+
this.domainName = domainName;
85+
if(domainName != null){
86+
putQueryParameter("DomainName", domainName);
87+
}
88+
}
89+
90+
public String getEndTime() {
91+
return this.endTime;
92+
}
93+
94+
public void setEndTime(String endTime) {
95+
this.endTime = endTime;
96+
if(endTime != null){
97+
putQueryParameter("EndTime", endTime);
98+
}
99+
}
100+
101+
@Override
102+
public Class<DescribeLiveCenterStreamRateDataResponse> getResponseClass() {
103+
return DescribeLiveCenterStreamRateDataResponse.class;
104+
}
105+
106+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.live.model.v20161101;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.live.transform.v20161101.DescribeLiveCenterStreamRateDataResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DescribeLiveCenterStreamRateDataResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private List<Data> rateDatas;
31+
32+
public String getRequestId() {
33+
return this.requestId;
34+
}
35+
36+
public void setRequestId(String requestId) {
37+
this.requestId = requestId;
38+
}
39+
40+
public List<Data> getRateDatas() {
41+
return this.rateDatas;
42+
}
43+
44+
public void setRateDatas(List<Data> rateDatas) {
45+
this.rateDatas = rateDatas;
46+
}
47+
48+
public static class Data {
49+
50+
private String videoFps;
51+
52+
private String videoRate;
53+
54+
private String audioFps;
55+
56+
private String audioRate;
57+
58+
private String time;
59+
60+
public String getVideoFps() {
61+
return this.videoFps;
62+
}
63+
64+
public void setVideoFps(String videoFps) {
65+
this.videoFps = videoFps;
66+
}
67+
68+
public String getVideoRate() {
69+
return this.videoRate;
70+
}
71+
72+
public void setVideoRate(String videoRate) {
73+
this.videoRate = videoRate;
74+
}
75+
76+
public String getAudioFps() {
77+
return this.audioFps;
78+
}
79+
80+
public void setAudioFps(String audioFps) {
81+
this.audioFps = audioFps;
82+
}
83+
84+
public String getAudioRate() {
85+
return this.audioRate;
86+
}
87+
88+
public void setAudioRate(String audioRate) {
89+
this.audioRate = audioRate;
90+
}
91+
92+
public String getTime() {
93+
return this.time;
94+
}
95+
96+
public void setTime(String time) {
97+
this.time = time;
98+
}
99+
}
100+
101+
@Override
102+
public DescribeLiveCenterStreamRateDataResponse getInstance(UnmarshallerContext context) {
103+
return DescribeLiveCenterStreamRateDataResponseUnmarshaller.unmarshall(this, context);
104+
}
105+
106+
@Override
107+
public boolean checkShowJsonItemName() {
108+
return false;
109+
}
110+
}

aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ModifyLiveMessageUserInfoResponse.java

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
*/
1414

1515
package com.aliyuncs.live.model.v20161101;
16-
16+
17+
import java.util.List;
1718
import com.aliyuncs.AcsResponse;
1819
import com.aliyuncs.live.transform.v20161101.ModifyLiveMessageUserInfoResponseUnmarshaller;
1920
import com.aliyuncs.transform.UnmarshallerContext;
@@ -26,6 +27,10 @@ public class ModifyLiveMessageUserInfoResponse extends AcsResponse {
2627

2728
private String requestId;
2829

30+
private List<SuccessGroups> successList;
31+
32+
private List<FailGroups> failList;
33+
2934
public String getRequestId() {
3035
return this.requestId;
3136
}
@@ -34,6 +39,88 @@ public void setRequestId(String requestId) {
3439
this.requestId = requestId;
3540
}
3641

42+
public List<SuccessGroups> getSuccessList() {
43+
return this.successList;
44+
}
45+
46+
public void setSuccessList(List<SuccessGroups> successList) {
47+
this.successList = successList;
48+
}
49+
50+
public List<FailGroups> getFailList() {
51+
return this.failList;
52+
}
53+
54+
public void setFailList(List<FailGroups> failList) {
55+
this.failList = failList;
56+
}
57+
58+
public static class SuccessGroups {
59+
60+
private String groupId;
61+
62+
private Boolean success;
63+
64+
public String getGroupId() {
65+
return this.groupId;
66+
}
67+
68+
public void setGroupId(String groupId) {
69+
this.groupId = groupId;
70+
}
71+
72+
public Boolean getSuccess() {
73+
return this.success;
74+
}
75+
76+
public void setSuccess(Boolean success) {
77+
this.success = success;
78+
}
79+
}
80+
81+
public static class FailGroups {
82+
83+
private String groupId;
84+
85+
private Boolean success;
86+
87+
private String reason;
88+
89+
private Integer code;
90+
91+
public String getGroupId() {
92+
return this.groupId;
93+
}
94+
95+
public void setGroupId(String groupId) {
96+
this.groupId = groupId;
97+
}
98+
99+
public Boolean getSuccess() {
100+
return this.success;
101+
}
102+
103+
public void setSuccess(Boolean success) {
104+
this.success = success;
105+
}
106+
107+
public String getReason() {
108+
return this.reason;
109+
}
110+
111+
public void setReason(String reason) {
112+
this.reason = reason;
113+
}
114+
115+
public Integer getCode() {
116+
return this.code;
117+
}
118+
119+
public void setCode(Integer code) {
120+
this.code = code;
121+
}
122+
}
123+
37124
@Override
38125
public ModifyLiveMessageUserInfoResponse getInstance(UnmarshallerContext context) {
39126
return ModifyLiveMessageUserInfoResponseUnmarshaller.unmarshall(this, context);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.live.transform.v20161101;
16+
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
import com.aliyuncs.live.model.v20161101.DescribeLiveCenterStreamRateDataResponse;
21+
import com.aliyuncs.live.model.v20161101.DescribeLiveCenterStreamRateDataResponse.Data;
22+
import com.aliyuncs.transform.UnmarshallerContext;
23+
24+
25+
public class DescribeLiveCenterStreamRateDataResponseUnmarshaller {
26+
27+
public static DescribeLiveCenterStreamRateDataResponse unmarshall(DescribeLiveCenterStreamRateDataResponse describeLiveCenterStreamRateDataResponse, UnmarshallerContext _ctx) {
28+
29+
describeLiveCenterStreamRateDataResponse.setRequestId(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RequestId"));
30+
31+
List<Data> rateDatas = new ArrayList<Data>();
32+
for (int i = 0; i < _ctx.lengthValue("DescribeLiveCenterStreamRateDataResponse.RateDatas.Length"); i++) {
33+
Data data = new Data();
34+
data.setVideoFps(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].VideoFps"));
35+
data.setVideoRate(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].VideoRate"));
36+
data.setAudioFps(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].AudioFps"));
37+
data.setAudioRate(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].AudioRate"));
38+
data.setTime(_ctx.stringValue("DescribeLiveCenterStreamRateDataResponse.RateDatas["+ i +"].Time"));
39+
40+
rateDatas.add(data);
41+
}
42+
describeLiveCenterStreamRateDataResponse.setRateDatas(rateDatas);
43+
44+
return describeLiveCenterStreamRateDataResponse;
45+
}
46+
}

0 commit comments

Comments
 (0)