Skip to content

Commit 11918c1

Browse files
committed
Add Chat Session Query Support.
1 parent 8bc7373 commit 11918c1

8 files changed

+591
-1
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-08-20 Version: 1.0.1
2+
- Add Chat Session Query Support.
3+
- Add Chat Session Close Support.
4+
15
2025-08-20 Version: 1.0.0
26
- Generated 2025-08-12 for `IntlMarket`.
37

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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.LingMou;
26+
using Aliyun.Acs.LingMou.Transform;
27+
using Aliyun.Acs.LingMou.Transform.V20250527;
28+
29+
namespace Aliyun.Acs.LingMou.Model.V20250527
30+
{
31+
public class CloseChatInstanceSessionsRequest : RoaAcsRequest<CloseChatInstanceSessionsResponse>
32+
{
33+
public CloseChatInstanceSessionsRequest()
34+
: base("LingMou", "2025-05-27", "CloseChatInstanceSessions")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
UriPattern = "/openapi/chat/instances/[instanceId]/sessions/close";
38+
Method = MethodType.PUT;
39+
}
40+
41+
private string instanceId;
42+
43+
private string sessionIds;
44+
45+
public string InstanceId
46+
{
47+
get
48+
{
49+
return instanceId;
50+
}
51+
set
52+
{
53+
instanceId = value;
54+
DictionaryUtil.Add(PathParameters, "instanceId", value);
55+
}
56+
}
57+
58+
public string SessionIds
59+
{
60+
get
61+
{
62+
return sessionIds;
63+
}
64+
set
65+
{
66+
sessionIds = value;
67+
DictionaryUtil.Add(BodyParameters, "sessionIds", value);
68+
}
69+
}
70+
71+
public override bool CheckShowJsonItemName()
72+
{
73+
return false;
74+
}
75+
76+
public override CloseChatInstanceSessionsResponse GetResponse(UnmarshallerContext unmarshallerContext)
77+
{
78+
return CloseChatInstanceSessionsResponseUnmarshaller.Unmarshall(unmarshallerContext);
79+
}
80+
}
81+
}
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
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.LingMou.Model.V20250527
24+
{
25+
public class CloseChatInstanceSessionsResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private bool? success;
31+
32+
private string code;
33+
34+
private string message;
35+
36+
private int? httpStatusCode;
37+
38+
private List<CloseChatInstanceSessions_DataItem> data;
39+
40+
public string RequestId
41+
{
42+
get
43+
{
44+
return requestId;
45+
}
46+
set
47+
{
48+
requestId = value;
49+
}
50+
}
51+
52+
public bool? Success
53+
{
54+
get
55+
{
56+
return success;
57+
}
58+
set
59+
{
60+
success = value;
61+
}
62+
}
63+
64+
public string Code
65+
{
66+
get
67+
{
68+
return code;
69+
}
70+
set
71+
{
72+
code = value;
73+
}
74+
}
75+
76+
public string Message
77+
{
78+
get
79+
{
80+
return message;
81+
}
82+
set
83+
{
84+
message = value;
85+
}
86+
}
87+
88+
public int? HttpStatusCode
89+
{
90+
get
91+
{
92+
return httpStatusCode;
93+
}
94+
set
95+
{
96+
httpStatusCode = value;
97+
}
98+
}
99+
100+
public List<CloseChatInstanceSessions_DataItem> Data
101+
{
102+
get
103+
{
104+
return data;
105+
}
106+
set
107+
{
108+
data = value;
109+
}
110+
}
111+
112+
public class CloseChatInstanceSessions_DataItem
113+
{
114+
115+
private string sessionId;
116+
117+
private long? mainAccountId;
118+
119+
private long? createdAt;
120+
121+
public string SessionId
122+
{
123+
get
124+
{
125+
return sessionId;
126+
}
127+
set
128+
{
129+
sessionId = value;
130+
}
131+
}
132+
133+
public long? MainAccountId
134+
{
135+
get
136+
{
137+
return mainAccountId;
138+
}
139+
set
140+
{
141+
mainAccountId = value;
142+
}
143+
}
144+
145+
public long? CreatedAt
146+
{
147+
get
148+
{
149+
return createdAt;
150+
}
151+
set
152+
{
153+
createdAt = value;
154+
}
155+
}
156+
}
157+
}
158+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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.LingMou;
26+
using Aliyun.Acs.LingMou.Transform;
27+
using Aliyun.Acs.LingMou.Transform.V20250527;
28+
29+
namespace Aliyun.Acs.LingMou.Model.V20250527
30+
{
31+
public class QueryChatInstanceSessionsRequest : RoaAcsRequest<QueryChatInstanceSessionsResponse>
32+
{
33+
public QueryChatInstanceSessionsRequest()
34+
: base("LingMou", "2025-05-27", "QueryChatInstanceSessions")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
UriPattern = "/openapi/chat/instances/[instanceId]/sessions";
38+
Method = MethodType.GET;
39+
}
40+
41+
private string instanceId;
42+
43+
private string sessionIds;
44+
45+
public string InstanceId
46+
{
47+
get
48+
{
49+
return instanceId;
50+
}
51+
set
52+
{
53+
instanceId = value;
54+
DictionaryUtil.Add(PathParameters, "instanceId", value);
55+
}
56+
}
57+
58+
public string SessionIds
59+
{
60+
get
61+
{
62+
return sessionIds;
63+
}
64+
set
65+
{
66+
sessionIds = value;
67+
DictionaryUtil.Add(QueryParameters, "sessionIds", value);
68+
}
69+
}
70+
71+
public override bool CheckShowJsonItemName()
72+
{
73+
return false;
74+
}
75+
76+
public override QueryChatInstanceSessionsResponse GetResponse(UnmarshallerContext unmarshallerContext)
77+
{
78+
return QueryChatInstanceSessionsResponseUnmarshaller.Unmarshall(unmarshallerContext);
79+
}
80+
}
81+
}

0 commit comments

Comments
 (0)