Skip to content

Commit d8ff569

Browse files
committed
Release GenerateCosplayImage.
1 parent 36b4195 commit d8ff569

17 files changed

+1440
-0
lines changed

CHANGELOG

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2024-02-20 Version: 1.0.0
2+
- Release GenerateCosplayImage.
3+
- Release GenerateTextDeformation.
4+
- Release GenerateTextTexture.
5+
- Release InteractiveFullSegmentation.
6+
- Release InteractiveScribbleSegmentation.
7+
18
2024-02-02 Version: 7.57.0
29
- Add UnsubscribeTopic.
310

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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.aigen;
26+
using Aliyun.Acs.aigen.Transform;
27+
using Aliyun.Acs.aigen.Transform.V20240111;
28+
29+
namespace Aliyun.Acs.aigen.Model.V20240111
30+
{
31+
public class GenerateCosplayImageRequest : RpcAcsRequest<GenerateCosplayImageResponse>
32+
{
33+
public GenerateCosplayImageRequest()
34+
: base("aigen", "2024-01-11", "GenerateCosplayImage")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
Method = MethodType.POST;
38+
}
39+
40+
private string templateImageUrl;
41+
42+
private string faceImageUrl;
43+
44+
private long? style;
45+
46+
public string TemplateImageUrl
47+
{
48+
get
49+
{
50+
return templateImageUrl;
51+
}
52+
set
53+
{
54+
templateImageUrl = value;
55+
DictionaryUtil.Add(BodyParameters, "TemplateImageUrl", value);
56+
}
57+
}
58+
59+
public string FaceImageUrl
60+
{
61+
get
62+
{
63+
return faceImageUrl;
64+
}
65+
set
66+
{
67+
faceImageUrl = value;
68+
DictionaryUtil.Add(BodyParameters, "FaceImageUrl", value);
69+
}
70+
}
71+
72+
public long? Style
73+
{
74+
get
75+
{
76+
return style;
77+
}
78+
set
79+
{
80+
style = value;
81+
DictionaryUtil.Add(BodyParameters, "Style", value.ToString());
82+
}
83+
}
84+
85+
public override bool CheckShowJsonItemName()
86+
{
87+
return false;
88+
}
89+
90+
public override GenerateCosplayImageResponse GetResponse(UnmarshallerContext unmarshallerContext)
91+
{
92+
return GenerateCosplayImageResponseUnmarshaller.Unmarshall(unmarshallerContext);
93+
}
94+
}
95+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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.aigen.Model.V20240111
24+
{
25+
public class GenerateCosplayImageResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private string code;
31+
32+
private string message;
33+
34+
private GenerateCosplayImage_Data data;
35+
36+
public string RequestId
37+
{
38+
get
39+
{
40+
return requestId;
41+
}
42+
set
43+
{
44+
requestId = value;
45+
}
46+
}
47+
48+
public string Code
49+
{
50+
get
51+
{
52+
return code;
53+
}
54+
set
55+
{
56+
code = value;
57+
}
58+
}
59+
60+
public string Message
61+
{
62+
get
63+
{
64+
return message;
65+
}
66+
set
67+
{
68+
message = value;
69+
}
70+
}
71+
72+
public GenerateCosplayImage_Data Data
73+
{
74+
get
75+
{
76+
return data;
77+
}
78+
set
79+
{
80+
data = value;
81+
}
82+
}
83+
84+
public class GenerateCosplayImage_Data
85+
{
86+
87+
private string resultUrl;
88+
89+
public string ResultUrl
90+
{
91+
get
92+
{
93+
return resultUrl;
94+
}
95+
set
96+
{
97+
resultUrl = value;
98+
}
99+
}
100+
}
101+
}
102+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
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.aigen;
26+
using Aliyun.Acs.aigen.Transform;
27+
using Aliyun.Acs.aigen.Transform.V20240111;
28+
29+
namespace Aliyun.Acs.aigen.Model.V20240111
30+
{
31+
public class GenerateTextDeformationRequest : RpcAcsRequest<GenerateTextDeformationResponse>
32+
{
33+
public GenerateTextDeformationRequest()
34+
: base("aigen", "2024-01-11", "GenerateTextDeformation")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
Method = MethodType.POST;
38+
}
39+
40+
private string textContent;
41+
42+
private string fontName;
43+
44+
private string ttfUrl;
45+
46+
private long? n;
47+
48+
private bool? async;
49+
50+
private string prompt;
51+
52+
private string outputImageRatio;
53+
54+
public string TextContent
55+
{
56+
get
57+
{
58+
return textContent;
59+
}
60+
set
61+
{
62+
textContent = value;
63+
DictionaryUtil.Add(BodyParameters, "TextContent", value);
64+
}
65+
}
66+
67+
public string FontName
68+
{
69+
get
70+
{
71+
return fontName;
72+
}
73+
set
74+
{
75+
fontName = value;
76+
DictionaryUtil.Add(BodyParameters, "FontName", value);
77+
}
78+
}
79+
80+
public string TtfUrl
81+
{
82+
get
83+
{
84+
return ttfUrl;
85+
}
86+
set
87+
{
88+
ttfUrl = value;
89+
DictionaryUtil.Add(BodyParameters, "TtfUrl", value);
90+
}
91+
}
92+
93+
public long? N
94+
{
95+
get
96+
{
97+
return n;
98+
}
99+
set
100+
{
101+
n = value;
102+
DictionaryUtil.Add(BodyParameters, "N", value.ToString());
103+
}
104+
}
105+
106+
public bool? Async
107+
{
108+
get
109+
{
110+
return async;
111+
}
112+
set
113+
{
114+
async = value;
115+
DictionaryUtil.Add(BodyParameters, "Async", value.ToString());
116+
}
117+
}
118+
119+
public string Prompt
120+
{
121+
get
122+
{
123+
return prompt;
124+
}
125+
set
126+
{
127+
prompt = value;
128+
DictionaryUtil.Add(BodyParameters, "Prompt", value);
129+
}
130+
}
131+
132+
public string OutputImageRatio
133+
{
134+
get
135+
{
136+
return outputImageRatio;
137+
}
138+
set
139+
{
140+
outputImageRatio = value;
141+
DictionaryUtil.Add(BodyParameters, "OutputImageRatio", value);
142+
}
143+
}
144+
145+
public override bool CheckShowJsonItemName()
146+
{
147+
return false;
148+
}
149+
150+
public override GenerateTextDeformationResponse GetResponse(UnmarshallerContext unmarshallerContext)
151+
{
152+
return GenerateTextDeformationResponseUnmarshaller.Unmarshall(unmarshallerContext);
153+
}
154+
}
155+
}

0 commit comments

Comments
 (0)