Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 083a098

Browse files
committed
Support API ActiveInteractionCreate.
1 parent 275b6f9 commit 083a098

File tree

7 files changed

+275
-5
lines changed

7 files changed

+275
-5
lines changed

‎bailianmodelonchip-20240816/ChangeLog.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025年10月24日 Version: 1.1.0
2+
- Support API ActiveInteractionCreate.
3+
4+
15
2025年06月12日 Version: 1.0.2
26
- Update API DeviceRegister: add request parameters appId.
37
- Update API DeviceRegister: add response parameters Body.data.appId.

‎bailianmodelonchip-20240816/core/Client.cs‎

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,136 @@ public string GetEndpoint(string productId, string regionId, string endpointRule
3737
return AlibabaCloud.EndpointUtil.Common.GetEndpointRules(productId, regionId, endpointRule, network, suffix);
3838
}
3939

40+
/// <term><b>Summary:</b></term>
41+
/// <summary>
42+
/// <para>主动交互消息传递</para>
43+
/// </summary>
44+
///
45+
/// <param name="request">
46+
/// ActiveInteractionCreateRequest
47+
/// </param>
48+
/// <param name="headers">
49+
/// map
50+
/// </param>
51+
/// <param name="runtime">
52+
/// runtime options for this request RuntimeOptions
53+
/// </param>
54+
///
55+
/// <returns>
56+
/// ActiveInteractionCreateResponse
57+
/// </returns>
58+
public ActiveInteractionCreateResponse ActiveInteractionCreateWithOptions(ActiveInteractionCreateRequest request, Dictionary<string, string> headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
59+
{
60+
AlibabaCloud.TeaUtil.Common.ValidateModel(request);
61+
Dictionary<string, object> body = new Dictionary<string, object>(){};
62+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Image))
63+
{
64+
body["image"] = request.Image;
65+
}
66+
AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest
67+
{
68+
Headers = headers,
69+
Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body),
70+
};
71+
AlibabaCloud.OpenApiClient.Models.Params params_ = new AlibabaCloud.OpenApiClient.Models.Params
72+
{
73+
Action = "ActiveInteractionCreate",
74+
Version = "2024年08月16日",
75+
Protocol = "HTTPS",
76+
Pathname = "/open/api/v1/active/interaction/create",
77+
Method = "POST",
78+
AuthType = "AK",
79+
Style = "ROA",
80+
ReqBodyType = "formData",
81+
BodyType = "json",
82+
};
83+
return TeaModel.ToObject<ActiveInteractionCreateResponse>(CallApi(params_, req, runtime));
84+
}
85+
86+
/// <term><b>Summary:</b></term>
87+
/// <summary>
88+
/// <para>主动交互消息传递</para>
89+
/// </summary>
90+
///
91+
/// <param name="request">
92+
/// ActiveInteractionCreateRequest
93+
/// </param>
94+
/// <param name="headers">
95+
/// map
96+
/// </param>
97+
/// <param name="runtime">
98+
/// runtime options for this request RuntimeOptions
99+
/// </param>
100+
///
101+
/// <returns>
102+
/// ActiveInteractionCreateResponse
103+
/// </returns>
104+
public async Task<ActiveInteractionCreateResponse> ActiveInteractionCreateWithOptionsAsync(ActiveInteractionCreateRequest request, Dictionary<string, string> headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
105+
{
106+
AlibabaCloud.TeaUtil.Common.ValidateModel(request);
107+
Dictionary<string, object> body = new Dictionary<string, object>(){};
108+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Image))
109+
{
110+
body["image"] = request.Image;
111+
}
112+
AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest
113+
{
114+
Headers = headers,
115+
Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body),
116+
};
117+
AlibabaCloud.OpenApiClient.Models.Params params_ = new AlibabaCloud.OpenApiClient.Models.Params
118+
{
119+
Action = "ActiveInteractionCreate",
120+
Version = "2024年08月16日",
121+
Protocol = "HTTPS",
122+
Pathname = "/open/api/v1/active/interaction/create",
123+
Method = "POST",
124+
AuthType = "AK",
125+
Style = "ROA",
126+
ReqBodyType = "formData",
127+
BodyType = "json",
128+
};
129+
return TeaModel.ToObject<ActiveInteractionCreateResponse>(await CallApiAsync(params_, req, runtime));
130+
}
131+
132+
/// <term><b>Summary:</b></term>
133+
/// <summary>
134+
/// <para>主动交互消息传递</para>
135+
/// </summary>
136+
///
137+
/// <param name="request">
138+
/// ActiveInteractionCreateRequest
139+
/// </param>
140+
///
141+
/// <returns>
142+
/// ActiveInteractionCreateResponse
143+
/// </returns>
144+
public ActiveInteractionCreateResponse ActiveInteractionCreate(ActiveInteractionCreateRequest request)
145+
{
146+
AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
147+
Dictionary<string, string> headers = new Dictionary<string, string>(){};
148+
return ActiveInteractionCreateWithOptions(request, headers, runtime);
149+
}
150+
151+
/// <term><b>Summary:</b></term>
152+
/// <summary>
153+
/// <para>主动交互消息传递</para>
154+
/// </summary>
155+
///
156+
/// <param name="request">
157+
/// ActiveInteractionCreateRequest
158+
/// </param>
159+
///
160+
/// <returns>
161+
/// ActiveInteractionCreateResponse
162+
/// </returns>
163+
public async Task<ActiveInteractionCreateResponse> ActiveInteractionCreateAsync(ActiveInteractionCreateRequest request)
164+
{
165+
AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
166+
Dictionary<string, string> headers = new Dictionary<string, string>(){};
167+
return await ActiveInteractionCreateWithOptionsAsync(request, headers, runtime);
168+
}
169+
40170
/// <term><b>Summary:</b></term>
41171
/// <summary>
42172
/// <para>设备注册</para>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.BailianModelOnChip20240816.Models
10+
{
11+
public class ActiveInteractionCreateRequest : TeaModel {
12+
/// <summary>
13+
/// <para>This parameter is required.</para>
14+
///
15+
/// <b>Example:</b>
16+
/// <para><a href="https://linkscreen-daily.oss-cn-hangzhou.aliyuncs.com/mock/251023/a_person_1.jpg">https://linkscreen-daily.oss-cn-hangzhou.aliyuncs.com/mock/251023/a_person_1.jpg</a></para>
17+
/// </summary>
18+
[NameInMap("image")]
19+
[Validation(Required=false)]
20+
public string Image { get; set; }
21+
22+
}
23+
24+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.BailianModelOnChip20240816.Models
10+
{
11+
public class ActiveInteractionCreateResponse : TeaModel {
12+
[NameInMap("headers")]
13+
[Validation(Required=false)]
14+
public Dictionary<string, string> Headers { get; set; }
15+
16+
[NameInMap("statusCode")]
17+
[Validation(Required=false)]
18+
public int? StatusCode { get; set; }
19+
20+
[NameInMap("body")]
21+
[Validation(Required=false)]
22+
public ActiveInteractionCreateResponseBody Body { get; set; }
23+
24+
}
25+
26+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.BailianModelOnChip20240816.Models
10+
{
11+
public class ActiveInteractionCreateResponseBody : TeaModel {
12+
/// <summary>
13+
/// <b>Example:</b>
14+
/// <para>success</para>
15+
/// </summary>
16+
[NameInMap("code")]
17+
[Validation(Required=false)]
18+
public string Code { get; set; }
19+
20+
[NameInMap("data")]
21+
[Validation(Required=false)]
22+
public ActiveInteractionCreateResponseBodyData Data { get; set; }
23+
public class ActiveInteractionCreateResponseBodyData : TeaModel {
24+
/// <summary>
25+
/// <b>Example:</b>
26+
/// <para>point</para>
27+
/// </summary>
28+
[NameInMap("gesture")]
29+
[Validation(Required=false)]
30+
public string Gesture { get; set; }
31+
32+
/// <summary>
33+
/// <b>Example:</b>
34+
/// <para>A man in dark clothing stands on a rocky hilltop, facing away from the camera, gazing at the expansive view with a contemplative posture.</para>
35+
/// </summary>
36+
[NameInMap("person")]
37+
[Validation(Required=false)]
38+
public string Person { get; set; }
39+
40+
/// <summary>
41+
/// <b>Example:</b>
42+
/// <para>Mountainous landscape with layered ridges receding into haze, under a vast blue sky with wispy clouds and soft golden light near the horizon.</para>
43+
/// </summary>
44+
[NameInMap("scene")]
45+
[Validation(Required=false)]
46+
public string Scene { get; set; }
47+
48+
}
49+
50+
/// <summary>
51+
/// <b>Example:</b>
52+
/// <para>200</para>
53+
/// </summary>
54+
[NameInMap("httpStatusCode")]
55+
[Validation(Required=false)]
56+
public int? HttpStatusCode { get; set; }
57+
58+
/// <summary>
59+
/// <b>Example:</b>
60+
/// <para>success</para>
61+
/// </summary>
62+
[NameInMap("message")]
63+
[Validation(Required=false)]
64+
public string Message { get; set; }
65+
66+
/// <summary>
67+
/// <para>Id of the request</para>
68+
///
69+
/// <b>Example:</b>
70+
/// <para>AF54F772-60FF-56FD-A3EA-11620EF1229A</para>
71+
/// </summary>
72+
[NameInMap("requestId")]
73+
[Validation(Required=false)]
74+
public string RequestId { get; set; }
75+
76+
/// <summary>
77+
/// <b>Example:</b>
78+
/// <para>True</para>
79+
/// </summary>
80+
[NameInMap("success")]
81+
[Validation(Required=false)]
82+
public bool? Success { get; set; }
83+
84+
}
85+
86+
}

‎bailianmodelonchip-20240816/core/Properties/AssemblyInfo.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: ComVisible(false)]
2121

2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("245d4450-4760-11f0-97e8-8b0a02565701")]
23+
[assembly: Guid("7dd6ecf0-b0b2-11f0-9eef-ef4e84aad684")]
2424

2525
// Version information for an assembly consists of the following four values:
2626
//
@@ -29,5 +29,5 @@
2929
// Build Number
3030
// Revision
3131
//
32-
[assembly: AssemblyVersion("1.0.1.0")]
33-
[assembly: AssemblyFileVersion("1.0.1.0")]
32+
[assembly: AssemblyVersion("1.0.2.0")]
33+
[assembly: AssemblyFileVersion("1.1.0.0")]

‎bailianmodelonchip-20240816/core/bailianmodelonchip.csproj‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
88
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
99
<AssemblyName>AlibabaCloud.SDK.BailianModelOnChip20240816</AssemblyName>
10-
<Version>1.0.2</Version>
10+
<Version>1.1.0</Version>
1111
<LangVersion>5</LangVersion>
1212
<Authors>Alibaba Cloud</Authors>
1313
<Description>Alibaba Cloud BailianModelOnChip (20240816) SDK Library for .NET</Description>
@@ -41,7 +41,7 @@
4141
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
4242
</PackageReference>
4343
<PackageReference Include="AlibabaCloud.TeaUtil" Version="0.1.19"/>
44-
<PackageReference Include="AlibabaCloud.OpenApiClient" Version="0.1.14"/>
44+
<PackageReference Include="AlibabaCloud.OpenApiClient" Version="0.1.15"/>
4545
<PackageReference Include="AlibabaCloud.OpenApiUtil" Version="1.1.2"/>
4646
<PackageReference Include="AlibabaCloud.EndpointUtil" Version="0.1.2"/>
4747
<PackageReference Include="Tea" Version="1.1.3"/>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /