Skip to content

Commit

Permalink
-offline add voice and industrycode
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 11, 2023
1 parent c786e57 commit f05fbe7
Show file tree
Hide file tree
Showing 11 changed files with 804 additions and 1 deletion.
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-07-11 Version: 1.0.23
-offline add voice and industrycode

2023-07-05 Version: 1.0.22
-offline add voice and industrycode

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>1.0.22</version>
<version>1.0.23</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
@@ -0,0 +1,118 @@
/*
* 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 java.util.Map;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class SendCommandRequest extends RpcAcsRequest<SendCommandResponse> {


private Boolean feedback;

private String code;

private String uniqueCode;

private Long tenantId;

private String sessionId;

@SerializedName("content")
private Map<String,String> content;
public SendCommandRequest() {
super("avatar", "2022-01-30", "SendCommand");
setMethod(MethodType.POST);
}

public Boolean getFeedback() {
return this.feedback;
}

public void setFeedback(Boolean feedback) {
this.feedback = feedback;
if(feedback != null){
putQueryParameter("Feedback", feedback.toString());
}
}

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

public void setCode(String code) {
this.code = code;
if(code != null){
putQueryParameter("Code", code);
}
}

public String getUniqueCode() {
return this.uniqueCode;
}

public void setUniqueCode(String uniqueCode) {
this.uniqueCode = uniqueCode;
if(uniqueCode != null){
putQueryParameter("UniqueCode", uniqueCode);
}
}

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

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

public String getSessionId() {
return this.sessionId;
}

public void setSessionId(String sessionId) {
this.sessionId = sessionId;
if(sessionId != null){
putQueryParameter("SessionId", sessionId);
}
}

public Map<String,String> getContent() {
return this.content;
}

public void setContent(Map<String,String> content) {
this.content = content;
if (content != null) {
putQueryParameter("Content" , new Gson().toJson(content));
}
}

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

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

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

private String requestId;

private String code;

private String message;

private Boolean success;

private Data data;

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

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

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 Boolean getSuccess() {
return this.success;
}

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

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

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

public static class Data {

private String sessionId;

private String uniqueCode;

public String getSessionId() {
return this.sessionId;
}

public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}

public String getUniqueCode() {
return this.uniqueCode;
}

public void setUniqueCode(String uniqueCode) {
this.uniqueCode = uniqueCode;
}
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit f05fbe7

Please sign in to comment.