Skip to content

Commit

Permalink
Generated 2022-01-30 for avatar.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 1, 2023
1 parent 02e5f09 commit 0e6f720
Show file tree
Hide file tree
Showing 13 changed files with 330 additions and 12 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-avatar/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-11-01 Version: 2.0.3
- Generated 2022-01-30 for `avatar`.

2023-09-18 Version: 2.0.2
- add client SDK api

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-avatar/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-avatar</artifactId>
<packaging>jar</packaging>
<version>2.0.2</version>
<version>2.0.3</version>
<name>aliyun-java-sdk-avatar</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 @@ -144,6 +144,8 @@ public static class TaskResult {

private String previewPic;

private String attachmentUrl;

public String getVideoUrl() {
return this.videoUrl;
}
Expand Down Expand Up @@ -207,6 +209,14 @@ public String getPreviewPic() {
public void setPreviewPic(String previewPic) {
this.previewPic = previewPic;
}

public String getAttachmentUrl() {
return this.attachmentUrl;
}

public void setAttachmentUrl(String attachmentUrl) {
this.attachmentUrl = attachmentUrl;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public static class DataItem {

private String sessionId;

private String token;

private Channel channel;

private User user;
Expand All @@ -91,6 +93,14 @@ public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}

public String getToken() {
return this.token;
}

public void setToken(String token) {
this.token = token;
}

public Channel getChannel() {
return this.channel;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ public static class TaskResult {

private String previewPic;

private String attachmentUrl;

public String getVideoUrl() {
return this.videoUrl;
}
Expand Down Expand Up @@ -250,6 +252,14 @@ public String getPreviewPic() {
public void setPreviewPic(String previewPic) {
this.previewPic = previewPic;
}

public String getAttachmentUrl() {
return this.attachmentUrl;
}

public void setAttachmentUrl(String attachmentUrl) {
this.attachmentUrl = attachmentUrl;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public class SubmitAudioTo2DAvatarVideoTaskResponse extends AcsResponse {

private String requestId;

private Boolean success;

private String code;

private String message;

private Boolean success;

private Data data;

public String getRequestId() {
Expand All @@ -42,14 +42,6 @@ public void setRequestId(String requestId) {
this.requestId = requestId;
}

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

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

public String getCode() {
return this.code;
}
Expand All @@ -66,6 +58,14 @@ public void setMessage(String message) {
this.message = message;
}

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

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

public Data getData() {
return this.data;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
/*
* 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.avatar.model.v20220130;

import com.aliyuncs.RpcAcsRequest;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class SubmitAvatarVideoTaskRequest extends RpcAcsRequest<SubmitAvatarVideoTaskResponse> {


private String title;

private String callbackParams;

private Long tenantId;

private String videoParams;

@SerializedName("app")
private App app;

private String extParams;

private Boolean callback;
public SubmitAvatarVideoTaskRequest() {
super("avatar", "2022-01-30", "SubmitAvatarVideoTask");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public String getTitle() {
return this.title;
}

public void setTitle(String title) {
this.title = title;
if(title != null){
putQueryParameter("Title", title);
}
}

public String getCallbackParams() {
return this.callbackParams;
}

public void setCallbackParams(String callbackParams) {
this.callbackParams = callbackParams;
if(callbackParams != null){
putQueryParameter("CallbackParams", callbackParams);
}
}

public Long getTenantId() {
return this.tenantId;
}

public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
if(tenantId != null){
putQueryParameter("TenantId", tenantId.toString());
}
}

public String getVideoParams() {
return this.videoParams;
}

public void setVideoParams(String videoParams) {
this.videoParams = videoParams;
if(videoParams != null){
putQueryParameter("VideoParams", videoParams);
}
}

public App getApp() {
return this.app;
}

public void setApp(App app) {
this.app = app;
if (app != null) {
putQueryParameter("App" , new Gson().toJson(app));
}
}

public String getExtParams() {
return this.extParams;
}

public void setExtParams(String extParams) {
this.extParams = extParams;
if(extParams != null){
putQueryParameter("ExtParams", extParams);
}
}

public Boolean getCallback() {
return this.callback;
}

public void setCallback(Boolean callback) {
this.callback = callback;
if(callback != null){
putQueryParameter("Callback", callback.toString());
}
}

public static class App {

@SerializedName("AppId")
private String appId;

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

public void setAppId(String appId) {
this.appId = appId;
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* 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.avatar.model.v20220130;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.avatar.transform.v20220130.SubmitAvatarVideoTaskResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private Boolean success;

private String code;

private String message;

private Data data;

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

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

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

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

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

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

public String getMessage() {
return this.message;
}

public void setMessage(String message) {
this.message = message;
}

public Data getData() {
return this.data;
}

public void setData(Data data) {
this.data = data;
}

public static class Data {

private String taskUuid;

public String getTaskUuid() {
return this.taskUuid;
}

public void setTaskUuid(String taskUuid) {
this.taskUuid = taskUuid;
}
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static GetVideoTaskInfoResponse unmarshall(GetVideoTaskInfoResponse getVi
taskResult.setVideoDuration(_ctx.integerValue("GetVideoTaskInfoResponse.Data.TaskResult.VideoDuration"));
taskResult.setAlphaUrl(_ctx.stringValue("GetVideoTaskInfoResponse.Data.TaskResult.AlphaUrl"));
taskResult.setPreviewPic(_ctx.stringValue("GetVideoTaskInfoResponse.Data.TaskResult.PreviewPic"));
taskResult.setAttachmentUrl(_ctx.stringValue("GetVideoTaskInfoResponse.Data.TaskResult.AttachmentUrl"));
data.setTaskResult(taskResult);
getVideoTaskInfoResponse.setData(data);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static QueryRunningInstanceResponse unmarshall(QueryRunningInstanceRespon
for (int i = 0; i < _ctx.lengthValue("QueryRunningInstanceResponse.Data.Length"); i++) {
DataItem dataItem = new DataItem();
dataItem.setSessionId(_ctx.stringValue("QueryRunningInstanceResponse.Data["+ i +"].SessionId"));
dataItem.setToken(_ctx.stringValue("QueryRunningInstanceResponse.Data["+ i +"].Token"));

Channel channel = new Channel();
channel.setChannelId(_ctx.stringValue("QueryRunningInstanceResponse.Data["+ i +"].Channel.ChannelId"));
Expand Down
Loading

0 comments on commit 0e6f720

Please sign in to comment.