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 13, 2024
1 parent 8422fde commit 01e1b78
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 27 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-13 Version: 3.9.58
- Update to support new apis.

2024-08-06 Version: 3.9.57
- 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.57</version>
<version>3.9.58</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
Expand Up @@ -33,8 +33,6 @@ public class AddCasterVideoResourceRequest extends RpcAcsRequest<AddCasterVideoR

private String vodUrl;

private String streamId;

private String casterId;

private Long ownerId;
Expand Down Expand Up @@ -107,17 +105,6 @@ public void setVodUrl(String vodUrl) {
}
}

public String getStreamId() {
return this.streamId;
}

public void setStreamId(String streamId) {
this.streamId = streamId;
if(streamId != null){
putQueryParameter("StreamId", streamId);
}
}

public String getCasterId() {
return this.casterId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public class CreateRtcAsrTaskRequest extends RpcAcsRequest<CreateRtcAsrTaskRespo

private Boolean translateEnabled;

private String tag;

private String streamURL;

private String targetLanguages;
Expand Down Expand Up @@ -107,17 +105,6 @@ public void setTranslateEnabled(Boolean translateEnabled) {
}
}

public String getTag() {
return this.tag;
}

public void setTag(String tag) {
this.tag = tag;
if(tag != null){
putQueryParameter("Tag", tag);
}
}

public String getStreamURL() {
return this.streamURL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,22 @@ public void setLayout(Layout layout) {

public static class UserInfo {

private String channelId;

private String userId;

private String sourceType;

private String streamType;

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}

public String getUserId() {
return this.userId;
}
Expand Down Expand Up @@ -522,6 +532,8 @@ public static class UserInfo1 {

private String sourceType;

private String channelId;

private String userId;

public String getSourceType() {
Expand All @@ -532,6 +544,14 @@ public void setSourceType(String sourceType) {
this.sourceType = sourceType;
}

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}

public String getUserId() {
return this.userId;
}
Expand All @@ -548,6 +568,8 @@ public static class MaxVideoUser {

private String streamType;

private String channelId;

private String userId;

public String getSourceType() {
Expand All @@ -566,6 +588,14 @@ public void setStreamType(String streamType) {
this.streamType = streamType;
}

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}

public String getUserId() {
return this.userId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ public static class UserInfo {
@SerializedName("UserId")
private String userId;

@SerializedName("ChannelId")
private String channelId;

public String getSourceType() {
return this.sourceType;
}
Expand All @@ -522,6 +525,14 @@ public String getUserId() {
public void setUserId(String userId) {
this.userId = userId;
}

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}
}
}

Expand All @@ -536,6 +547,9 @@ public static class MaxVideoUser {
@SerializedName("UserId")
private String userId;

@SerializedName("ChannelId")
private String channelId;

public String getStreamType() {
return this.streamType;
}
Expand All @@ -559,6 +573,14 @@ public String getUserId() {
public void setUserId(String userId) {
this.userId = userId;
}

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}
}
}

Expand Down Expand Up @@ -598,6 +620,9 @@ public static class UserInfosItem {
@SerializedName("UserId")
private String userId;

@SerializedName("ChannelId")
private String channelId;

public String getStreamType() {
return this.streamType;
}
Expand All @@ -621,6 +646,14 @@ public String getUserId() {
public void setUserId(String userId) {
this.userId = userId;
}

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}
}

public static class EncodeParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ public static class UserInfo {
@SerializedName("UserId")
private String userId;

@SerializedName("ChannelId")
private String channelId;

public String getSourceType() {
return this.sourceType;
}
Expand All @@ -498,6 +501,14 @@ public String getUserId() {
public void setUserId(String userId) {
this.userId = userId;
}

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}
}
}

Expand All @@ -512,6 +523,9 @@ public static class MaxVideoUser {
@SerializedName("UserId")
private String userId;

@SerializedName("ChannelId")
private String channelId;

public String getStreamType() {
return this.streamType;
}
Expand All @@ -535,6 +549,14 @@ public String getUserId() {
public void setUserId(String userId) {
this.userId = userId;
}

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}
}
}

Expand Down Expand Up @@ -574,6 +596,9 @@ public static class UserInfosItem {
@SerializedName("UserId")
private String userId;

@SerializedName("ChannelId")
private String channelId;

public String getStreamType() {
return this.streamType;
}
Expand All @@ -597,6 +622,14 @@ public String getUserId() {
public void setUserId(String userId) {
this.userId = userId;
}

public String getChannelId() {
return this.channelId;
}

public void setChannelId(String channelId) {
this.channelId = channelId;
}
}

public static class EncodeParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public static ListRtcMPUTaskDetailResponse unmarshall(ListRtcMPUTaskDetailRespon
MaxVideoUser maxVideoUser = new MaxVideoUser();
maxVideoUser.setSourceType(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.Layout.MaxVideoUser.SourceType"));
maxVideoUser.setStreamType(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.Layout.MaxVideoUser.StreamType"));
maxVideoUser.setChannelId(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.Layout.MaxVideoUser.ChannelId"));
maxVideoUser.setUserId(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.Layout.MaxVideoUser.UserId"));
layout.setMaxVideoUser(maxVideoUser);

Expand All @@ -100,6 +101,7 @@ public static ListRtcMPUTaskDetailResponse unmarshall(ListRtcMPUTaskDetailRespon

UserInfo1 userInfo1 = new UserInfo1();
userInfo1.setSourceType(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.Layout.UserPanes["+ j +"].UserInfo.SourceType"));
userInfo1.setChannelId(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.Layout.UserPanes["+ j +"].UserInfo.ChannelId"));
userInfo1.setUserId(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.Layout.UserPanes["+ j +"].UserInfo.UserId"));
userPane.setUserInfo1(userInfo1);

Expand All @@ -111,6 +113,7 @@ public static ListRtcMPUTaskDetailResponse unmarshall(ListRtcMPUTaskDetailRespon
List<UserInfo> userInfos = new ArrayList<UserInfo>();
for (int j = 0; j < _ctx.lengthValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.UserInfos.Length"); j++) {
UserInfo userInfo = new UserInfo();
userInfo.setChannelId(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.UserInfos["+ j +"].ChannelId"));
userInfo.setUserId(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.UserInfos["+ j +"].UserId"));
userInfo.setSourceType(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.UserInfos["+ j +"].SourceType"));
userInfo.setStreamType(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].TranscodeParams.UserInfos["+ j +"].StreamType"));
Expand Down

0 comments on commit 01e1b78

Please sign in to comment.