Skip to content

Commit 1ff532e

Browse files
committed
first publish.
1 parent c6e8a5b commit 1ff532e

File tree

5 files changed

+282
-0
lines changed

5 files changed

+282
-0
lines changed

CHANGELOG

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-03-07 Version: 1.0.0
2+
- first publish.
3+
- publish ssechat api.
4+
- update sse chat api.
5+
16
2025-02-07 Version: 1.0.1
27
- Add ModifyInstanceProperties.
38

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
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.BailianChatBot;
26+
using Aliyun.Acs.BailianChatBot.Transform;
27+
using Aliyun.Acs.BailianChatBot.Transform.V20241105;
28+
29+
namespace Aliyun.Acs.BailianChatBot.Model.V20241105
30+
{
31+
public class SseChatRequest : RpcAcsRequest<SseChatResponse>
32+
{
33+
public SseChatRequest()
34+
: base("BailianChatBot", "2024-11-05", "SseChat")
35+
{
36+
Method = MethodType.POST;
37+
}
38+
39+
private string sessionId;
40+
41+
private string command;
42+
43+
private string vendorParam;
44+
45+
private string senderId;
46+
47+
private string appId;
48+
49+
private string senderNick;
50+
51+
private string utterance;
52+
53+
private string workspaceId;
54+
55+
public string SessionId
56+
{
57+
get
58+
{
59+
return sessionId;
60+
}
61+
set
62+
{
63+
sessionId = value;
64+
DictionaryUtil.Add(QueryParameters, "SessionId", value);
65+
}
66+
}
67+
68+
public string Command
69+
{
70+
get
71+
{
72+
return command;
73+
}
74+
set
75+
{
76+
command = value;
77+
DictionaryUtil.Add(QueryParameters, "Command", value);
78+
}
79+
}
80+
81+
public string VendorParam
82+
{
83+
get
84+
{
85+
return vendorParam;
86+
}
87+
set
88+
{
89+
vendorParam = value;
90+
DictionaryUtil.Add(QueryParameters, "VendorParam", value);
91+
}
92+
}
93+
94+
public string SenderId
95+
{
96+
get
97+
{
98+
return senderId;
99+
}
100+
set
101+
{
102+
senderId = value;
103+
DictionaryUtil.Add(QueryParameters, "SenderId", value);
104+
}
105+
}
106+
107+
public string AppId
108+
{
109+
get
110+
{
111+
return appId;
112+
}
113+
set
114+
{
115+
appId = value;
116+
DictionaryUtil.Add(QueryParameters, "AppId", value);
117+
}
118+
}
119+
120+
public string SenderNick
121+
{
122+
get
123+
{
124+
return senderNick;
125+
}
126+
set
127+
{
128+
senderNick = value;
129+
DictionaryUtil.Add(QueryParameters, "SenderNick", value);
130+
}
131+
}
132+
133+
public string Utterance
134+
{
135+
get
136+
{
137+
return utterance;
138+
}
139+
set
140+
{
141+
utterance = value;
142+
DictionaryUtil.Add(QueryParameters, "Utterance", value);
143+
}
144+
}
145+
146+
public string WorkspaceId
147+
{
148+
get
149+
{
150+
return workspaceId;
151+
}
152+
set
153+
{
154+
workspaceId = value;
155+
DictionaryUtil.Add(QueryParameters, "WorkspaceId", value);
156+
}
157+
}
158+
159+
public override bool CheckShowJsonItemName()
160+
{
161+
return false;
162+
}
163+
164+
public override SseChatResponse GetResponse(UnmarshallerContext unmarshallerContext)
165+
{
166+
return SseChatResponseUnmarshaller.Unmarshall(unmarshallerContext);
167+
}
168+
}
169+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.BailianChatBot.Model.V20241105
24+
{
25+
public class SseChatResponse : AcsResponse
26+
{
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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;
20+
using System.Collections.Generic;
21+
22+
using Aliyun.Acs.Core.Transform;
23+
using Aliyun.Acs.BailianChatBot.Model.V20241105;
24+
25+
namespace Aliyun.Acs.BailianChatBot.Transform.V20241105
26+
{
27+
public class SseChatResponseUnmarshaller
28+
{
29+
public static SseChatResponse Unmarshall(UnmarshallerContext _ctx)
30+
{
31+
SseChatResponse sseChatResponse = new SseChatResponse();
32+
33+
sseChatResponse.HttpResponse = _ctx.HttpResponse;
34+
35+
return sseChatResponse;
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
5+
<RootNamespace>Aliyun.Acs.BailianChatBot</RootNamespace>
6+
<Version>1.0.0</Version>
7+
<Authors>Alibaba Cloud</Authors>
8+
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
9+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
10+
<PackageLicenseUrl>https://raw.githubusercontent.com/aliyun/aliyun-openapi-net-sdk/master/LICENSE</PackageLicenseUrl>
11+
<PackageProjectUrl>https://github.com/aliyun/aliyun-openapi-net-sdk</PackageProjectUrl>
12+
<PackageIconUrl>https://www.alibabacloud.com/favicon.ico</PackageIconUrl>
13+
<Description>Alibaba Cloud SDK for .NET</Description>
14+
<PackageReleaseNotes/>
15+
<PackageTags>alibaba aliyun SDK BailianChatBot</PackageTags>
16+
<AssemblyName>aliyun-net-sdk-bailianchatbot</AssemblyName>
17+
</PropertyGroup>
18+
<ItemGroup>
19+
<ProjectReference Include="..\aliyun-net-sdk-core\aliyun-net-sdk-core.vs2017.csproj"/>
20+
</ItemGroup>
21+
<ItemGroup>
22+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.2">
23+
<PrivateAssets>all</PrivateAssets>
24+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
25+
</PackageReference>
26+
</ItemGroup>
27+
<ItemGroup>
28+
<PackageReference Include="Newtonsoft.Json" Version="[13.0.1,)"/>
29+
</ItemGroup>
30+
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
31+
<Reference Include="mscorlib"/>
32+
<Reference Include="System"/>
33+
<Reference Include="System.Core"/>
34+
<Reference Include="Microsoft.CSharp"/>
35+
<Reference Include="System.Data"/>
36+
<Reference Include="System.Web"/>
37+
<Reference Include="System.Drawing"/>
38+
<Reference Include="System.Security"/>
39+
<Reference Include="System.Xml"/>
40+
<Reference Include="System.Configuration"/>
41+
</ItemGroup>
42+
</Project>

0 commit comments

Comments
 (0)