Skip to content

Commit 9d5a524

Browse files
committed
Init.
1 parent 18cde50 commit 9d5a524

11 files changed

+640
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-01-24 Version: 1.0.1
2+
- Init.
3+
14
2024-11-19 Version: 1.0.0
25
- Init.
36

aliyun-java-sdk-aimath/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-aimath</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.0</version>
7+
<version>1.0.1</version>
88
<name>aliyun-java-sdk-aimath</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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.aimath.model.v20241114;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class ChatMessageRequest extends RpcAcsRequest<ChatMessageResponse> {
25+
26+
27+
private String conversationId;
28+
29+
private String userId;
30+
31+
private String content;
32+
public ChatMessageRequest() {
33+
super("AIMath", "2024-11-14", "ChatMessage");
34+
setMethod(MethodType.POST);
35+
}
36+
37+
public String getConversationId() {
38+
return this.conversationId;
39+
}
40+
41+
public void setConversationId(String conversationId) {
42+
this.conversationId = conversationId;
43+
if(conversationId != null){
44+
putBodyParameter("ConversationId", conversationId);
45+
}
46+
}
47+
48+
public String getUserId() {
49+
return this.userId;
50+
}
51+
52+
public void setUserId(String userId) {
53+
this.userId = userId;
54+
if(userId != null){
55+
putBodyParameter("UserId", userId);
56+
}
57+
}
58+
59+
public String getContent() {
60+
return this.content;
61+
}
62+
63+
public void setContent(String content) {
64+
this.content = content;
65+
if(content != null){
66+
putBodyParameter("Content", content);
67+
}
68+
}
69+
70+
@Override
71+
public Class<ChatMessageResponse> getResponseClass() {
72+
return ChatMessageResponse.class;
73+
}
74+
75+
}
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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.aimath.model.v20241114;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.aimath.transform.v20241114.ChatMessageResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class ChatMessageResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String eventType;
30+
31+
private String content;
32+
33+
private Boolean success;
34+
35+
private String errMsg;
36+
37+
private String errCode;
38+
39+
public String getRequestId() {
40+
return this.requestId;
41+
}
42+
43+
public void setRequestId(String requestId) {
44+
this.requestId = requestId;
45+
}
46+
47+
public String getEventType() {
48+
return this.eventType;
49+
}
50+
51+
public void setEventType(String eventType) {
52+
this.eventType = eventType;
53+
}
54+
55+
public String getContent() {
56+
return this.content;
57+
}
58+
59+
public void setContent(String content) {
60+
this.content = content;
61+
}
62+
63+
public Boolean getSuccess() {
64+
return this.success;
65+
}
66+
67+
public void setSuccess(Boolean success) {
68+
this.success = success;
69+
}
70+
71+
public String getErrMsg() {
72+
return this.errMsg;
73+
}
74+
75+
public void setErrMsg(String errMsg) {
76+
this.errMsg = errMsg;
77+
}
78+
79+
public String getErrCode() {
80+
return this.errCode;
81+
}
82+
83+
public void setErrCode(String errCode) {
84+
this.errCode = errCode;
85+
}
86+
87+
@Override
88+
public ChatMessageResponse getInstance(UnmarshallerContext context) {
89+
return ChatMessageResponseUnmarshaller.unmarshall(this, context);
90+
}
91+
92+
@Override
93+
public boolean checkShowJsonItemName() {
94+
return false;
95+
}
96+
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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.aimath.model.v20241114;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateConversationRequest extends RpcAcsRequest<CreateConversationResponse> {
26+
27+
28+
private String outerBizId;
29+
30+
private String userId;
31+
32+
private String exerciseAnswer;
33+
34+
private String exerciseType;
35+
36+
private String exerciseContent;
37+
38+
private String exerciseAnalysis;
39+
public CreateConversationRequest() {
40+
super("AIMath", "2024-11-14", "CreateConversation");
41+
setProtocol(ProtocolType.HTTPS);
42+
setMethod(MethodType.POST);
43+
}
44+
45+
public String getOuterBizId() {
46+
return this.outerBizId;
47+
}
48+
49+
public void setOuterBizId(String outerBizId) {
50+
this.outerBizId = outerBizId;
51+
if(outerBizId != null){
52+
putBodyParameter("OuterBizId", outerBizId);
53+
}
54+
}
55+
56+
public String getUserId() {
57+
return this.userId;
58+
}
59+
60+
public void setUserId(String userId) {
61+
this.userId = userId;
62+
if(userId != null){
63+
putBodyParameter("UserId", userId);
64+
}
65+
}
66+
67+
public String getExerciseAnswer() {
68+
return this.exerciseAnswer;
69+
}
70+
71+
public void setExerciseAnswer(String exerciseAnswer) {
72+
this.exerciseAnswer = exerciseAnswer;
73+
if(exerciseAnswer != null){
74+
putBodyParameter("ExerciseAnswer", exerciseAnswer);
75+
}
76+
}
77+
78+
public String getExerciseType() {
79+
return this.exerciseType;
80+
}
81+
82+
public void setExerciseType(String exerciseType) {
83+
this.exerciseType = exerciseType;
84+
if(exerciseType != null){
85+
putBodyParameter("ExerciseType", exerciseType);
86+
}
87+
}
88+
89+
public String getExerciseContent() {
90+
return this.exerciseContent;
91+
}
92+
93+
public void setExerciseContent(String exerciseContent) {
94+
this.exerciseContent = exerciseContent;
95+
if(exerciseContent != null){
96+
putBodyParameter("ExerciseContent", exerciseContent);
97+
}
98+
}
99+
100+
public String getExerciseAnalysis() {
101+
return this.exerciseAnalysis;
102+
}
103+
104+
public void setExerciseAnalysis(String exerciseAnalysis) {
105+
this.exerciseAnalysis = exerciseAnalysis;
106+
if(exerciseAnalysis != null){
107+
putBodyParameter("ExerciseAnalysis", exerciseAnalysis);
108+
}
109+
}
110+
111+
@Override
112+
public Class<CreateConversationResponse> getResponseClass() {
113+
return CreateConversationResponse.class;
114+
}
115+
116+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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.aimath.model.v20241114;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.aimath.transform.v20241114.CreateConversationResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateConversationResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String conversationId;
30+
31+
private String errCode;
32+
33+
private String errMsg;
34+
35+
private Boolean success;
36+
37+
public String getRequestId() {
38+
return this.requestId;
39+
}
40+
41+
public void setRequestId(String requestId) {
42+
this.requestId = requestId;
43+
}
44+
45+
public String getConversationId() {
46+
return this.conversationId;
47+
}
48+
49+
public void setConversationId(String conversationId) {
50+
this.conversationId = conversationId;
51+
}
52+
53+
public String getErrCode() {
54+
return this.errCode;
55+
}
56+
57+
public void setErrCode(String errCode) {
58+
this.errCode = errCode;
59+
}
60+
61+
public String getErrMsg() {
62+
return this.errMsg;
63+
}
64+
65+
public void setErrMsg(String errMsg) {
66+
this.errMsg = errMsg;
67+
}
68+
69+
public Boolean getSuccess() {
70+
return this.success;
71+
}
72+
73+
public void setSuccess(Boolean success) {
74+
this.success = success;
75+
}
76+
77+
@Override
78+
public CreateConversationResponse getInstance(UnmarshallerContext context) {
79+
return CreateConversationResponseUnmarshaller.unmarshall(this, context);
80+
}
81+
82+
@Override
83+
public boolean checkShowJsonItemName() {
84+
return false;
85+
}
86+
}

0 commit comments

Comments
 (0)