-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
804 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
...java-sdk-avatar/src/main/java/com/aliyuncs/avatar/model/v20220130/SendCommandRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
109 changes: 109 additions & 0 deletions
109
...ava-sdk-avatar/src/main/java/com/aliyuncs/avatar/model/v20220130/SendCommandResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.