Skip to content

Commit adc2ae6

Browse files
committed
Init.
1 parent 2c5a7a8 commit adc2ae6

11 files changed

+771
-1
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-01-24 Version: 1.0.1
2+
- Init.
3+
14
2025-01-20 Version: 1.8.24
25
- Generated 2017-08-01 for `polardb`.
36

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.AIMath;
26+
using Aliyun.Acs.AIMath.Transform;
27+
using Aliyun.Acs.AIMath.Transform.V20241114;
28+
29+
namespace Aliyun.Acs.AIMath.Model.V20241114
30+
{
31+
public class ChatMessageRequest : RpcAcsRequest<ChatMessageResponse>
32+
{
33+
public ChatMessageRequest()
34+
: base("AIMath", "2024-11-14", "ChatMessage")
35+
{
36+
Method = MethodType.POST;
37+
}
38+
39+
private string conversationId;
40+
41+
private string userId;
42+
43+
private string content;
44+
45+
public string ConversationId
46+
{
47+
get
48+
{
49+
return conversationId;
50+
}
51+
set
52+
{
53+
conversationId = value;
54+
DictionaryUtil.Add(BodyParameters, "ConversationId", value);
55+
}
56+
}
57+
58+
public string UserId
59+
{
60+
get
61+
{
62+
return userId;
63+
}
64+
set
65+
{
66+
userId = value;
67+
DictionaryUtil.Add(BodyParameters, "UserId", value);
68+
}
69+
}
70+
71+
public string Content
72+
{
73+
get
74+
{
75+
return content;
76+
}
77+
set
78+
{
79+
content = value;
80+
DictionaryUtil.Add(BodyParameters, "Content", value);
81+
}
82+
}
83+
84+
public override bool CheckShowJsonItemName()
85+
{
86+
return false;
87+
}
88+
89+
public override ChatMessageResponse GetResponse(UnmarshallerContext unmarshallerContext)
90+
{
91+
return ChatMessageResponseUnmarshaller.Unmarshall(unmarshallerContext);
92+
}
93+
}
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.AIMath.Model.V20241114
24+
{
25+
public class ChatMessageResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private string eventType;
31+
32+
private string content;
33+
34+
private bool? success;
35+
36+
private string errMsg;
37+
38+
private string errCode;
39+
40+
public string RequestId
41+
{
42+
get
43+
{
44+
return requestId;
45+
}
46+
set
47+
{
48+
requestId = value;
49+
}
50+
}
51+
52+
public string EventType
53+
{
54+
get
55+
{
56+
return eventType;
57+
}
58+
set
59+
{
60+
eventType = value;
61+
}
62+
}
63+
64+
public string Content
65+
{
66+
get
67+
{
68+
return content;
69+
}
70+
set
71+
{
72+
content = value;
73+
}
74+
}
75+
76+
public bool? Success
77+
{
78+
get
79+
{
80+
return success;
81+
}
82+
set
83+
{
84+
success = value;
85+
}
86+
}
87+
88+
public string ErrMsg
89+
{
90+
get
91+
{
92+
return errMsg;
93+
}
94+
set
95+
{
96+
errMsg = value;
97+
}
98+
}
99+
100+
public string ErrCode
101+
{
102+
get
103+
{
104+
return errCode;
105+
}
106+
set
107+
{
108+
errCode = value;
109+
}
110+
}
111+
}
112+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.AIMath;
26+
using Aliyun.Acs.AIMath.Transform;
27+
using Aliyun.Acs.AIMath.Transform.V20241114;
28+
29+
namespace Aliyun.Acs.AIMath.Model.V20241114
30+
{
31+
public class CreateConversationRequest : RpcAcsRequest<CreateConversationResponse>
32+
{
33+
public CreateConversationRequest()
34+
: base("AIMath", "2024-11-14", "CreateConversation")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
Method = MethodType.POST;
38+
}
39+
40+
private string outerBizId;
41+
42+
private string userId;
43+
44+
private string exerciseAnswer;
45+
46+
private string exerciseType;
47+
48+
private string exerciseContent;
49+
50+
private string exerciseAnalysis;
51+
52+
public string OuterBizId
53+
{
54+
get
55+
{
56+
return outerBizId;
57+
}
58+
set
59+
{
60+
outerBizId = value;
61+
DictionaryUtil.Add(BodyParameters, "OuterBizId", value);
62+
}
63+
}
64+
65+
public string UserId
66+
{
67+
get
68+
{
69+
return userId;
70+
}
71+
set
72+
{
73+
userId = value;
74+
DictionaryUtil.Add(BodyParameters, "UserId", value);
75+
}
76+
}
77+
78+
public string ExerciseAnswer
79+
{
80+
get
81+
{
82+
return exerciseAnswer;
83+
}
84+
set
85+
{
86+
exerciseAnswer = value;
87+
DictionaryUtil.Add(BodyParameters, "ExerciseAnswer", value);
88+
}
89+
}
90+
91+
public string ExerciseType
92+
{
93+
get
94+
{
95+
return exerciseType;
96+
}
97+
set
98+
{
99+
exerciseType = value;
100+
DictionaryUtil.Add(BodyParameters, "ExerciseType", value);
101+
}
102+
}
103+
104+
public string ExerciseContent
105+
{
106+
get
107+
{
108+
return exerciseContent;
109+
}
110+
set
111+
{
112+
exerciseContent = value;
113+
DictionaryUtil.Add(BodyParameters, "ExerciseContent", value);
114+
}
115+
}
116+
117+
public string ExerciseAnalysis
118+
{
119+
get
120+
{
121+
return exerciseAnalysis;
122+
}
123+
set
124+
{
125+
exerciseAnalysis = value;
126+
DictionaryUtil.Add(BodyParameters, "ExerciseAnalysis", value);
127+
}
128+
}
129+
130+
public override bool CheckShowJsonItemName()
131+
{
132+
return false;
133+
}
134+
135+
public override CreateConversationResponse GetResponse(UnmarshallerContext unmarshallerContext)
136+
{
137+
return CreateConversationResponseUnmarshaller.Unmarshall(unmarshallerContext);
138+
}
139+
}
140+
}

0 commit comments

Comments
 (0)