Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdb5585

Browse files
committed
Add new api.
1 parent 50b06a5 commit cdb5585

35 files changed

+4125
-1
lines changed

aliyun-java-sdk-ocr/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-12-29 Version: 1.0.3
2+
- Add new api.
3+
14
2019-12-19 Version: 1.0.2
25
- Third sdk version.
36

aliyun-java-sdk-ocr/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-ocr</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.2</version>
7+
<version>1.0.3</version>
88
<name>aliyun-java-sdk-ocr</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.ocr.model.v20191230;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.ocr.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class RecognizeAccountPageRequest extends RpcAcsRequest<RecognizeAccountPageResponse> {
26+
27+
28+
private Integer imageType;
29+
30+
private String imageURL;
31+
32+
private String imageContent;
33+
public RecognizeAccountPageRequest() {
34+
super("ocr", "2019-12-30", "RecognizeAccountPage", "ocr");
35+
setMethod(MethodType.POST);
36+
try {
37+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
38+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
39+
} catch (Exception e) {}
40+
}
41+
42+
public Integer getImageType() {
43+
return this.imageType;
44+
}
45+
46+
public void setImageType(Integer imageType) {
47+
this.imageType = imageType;
48+
if(imageType != null){
49+
putBodyParameter("ImageType", imageType.toString());
50+
}
51+
}
52+
53+
public String getImageURL() {
54+
return this.imageURL;
55+
}
56+
57+
public void setImageURL(String imageURL) {
58+
this.imageURL = imageURL;
59+
if(imageURL != null){
60+
putBodyParameter("ImageURL", imageURL);
61+
}
62+
}
63+
64+
public String getImageContent() {
65+
return this.imageContent;
66+
}
67+
68+
public void setImageContent(String imageContent) {
69+
this.imageContent = imageContent;
70+
if(imageContent != null){
71+
putBodyParameter("ImageContent", imageContent);
72+
}
73+
}
74+
75+
@Override
76+
public Class<RecognizeAccountPageResponse> getResponseClass() {
77+
return RecognizeAccountPageResponse.class;
78+
}
79+
80+
}

0 commit comments

Comments
 (0)