Skip to content

Commit a82cc23

Browse files
committed
add live sdk
1 parent edcb738 commit a82cc23

4 files changed

Lines changed: 252 additions & 0 deletions

File tree

aliyun-java-sdk-live/pom.xml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>com.aliyun</groupId>
4+
<artifactId>aliyun-java-sdk-live</artifactId>
5+
<packaging>jar</packaging>
6+
<version>2.0.1</version>
7+
<name>aliyun-java-sdk-live</name>
8+
<url>http://www.aliyun.com</url>
9+
<description>Aliyun Open API SDK for Java
10+
11+
Copyright (C) Alibaba Cloud Computing
12+
All rights reserved.
13+
14+
版权所有 (C)阿里云计算有限公司
15+
16+
http://www.aliyun.com</description>
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.aliyun</groupId>
20+
<artifactId>aliyun-java-sdk-core</artifactId>
21+
<optional>true</optional>
22+
<version>3.0.0</version>
23+
</dependency>
24+
</dependencies>
25+
<licenses>
26+
<license>
27+
<name></name>
28+
<url></url>
29+
<distribution></distribution>
30+
</license>
31+
</licenses>
32+
<scm>
33+
<url></url>
34+
<connection></connection>
35+
</scm>
36+
<developers>
37+
<developer>
38+
<id>aliyunproducts</id>
39+
<name>Aliyun SDK</name>
40+
<email>aliyunsdk@aliyun.com</email>
41+
</developer>
42+
</developers>
43+
<build>
44+
<plugins>
45+
<plugin>
46+
<artifactId>maven-compiler-plugin</artifactId>
47+
<version>2.3.2</version>
48+
<configuration>
49+
<source>1.6</source>
50+
<target>1.6</target>
51+
<encoding>UTF-8</encoding>
52+
</configuration>
53+
</plugin>
54+
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
56+
<artifactId>maven-jar-plugin</artifactId>
57+
<version>2.3.2</version>
58+
<configuration>
59+
<excludes>
60+
</excludes>
61+
</configuration>
62+
</plugin>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-surefire-plugin</artifactId>
66+
<version>2.10</version>
67+
<configuration>
68+
<argLine>-Dfile.encoding=UTF-8</argLine>
69+
</configuration>
70+
</plugin>
71+
<plugin>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-javadoc-plugin</artifactId>
74+
<version>2.8</version>
75+
<configuration>
76+
<encoding>UTF-8</encoding>
77+
</configuration>
78+
</plugin>
79+
</plugins>
80+
</build>
81+
</project>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
package com.aliyuncs.live.model.v20161101;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class ImagePornDetectionRequest extends RpcAcsRequest<ImagePornDetectionResponse> {
28+
29+
public ImagePornDetectionRequest() {
30+
super("live", "2016-11-01", "ImagePornDetection", "live");
31+
}
32+
33+
private String securityToken;
34+
35+
private Long ownerId;
36+
37+
private String imageUrl;
38+
39+
public String getSecurityToken() {
40+
return this.securityToken;
41+
}
42+
43+
public void setSecurityToken(String securityToken) {
44+
this.securityToken = securityToken;
45+
putQueryParameter("SecurityToken", securityToken);
46+
}
47+
48+
public Long getOwnerId() {
49+
return this.ownerId;
50+
}
51+
52+
public void setOwnerId(Long ownerId) {
53+
this.ownerId = ownerId;
54+
putQueryParameter("OwnerId", ownerId);
55+
}
56+
57+
public String getImageUrl() {
58+
return this.imageUrl;
59+
}
60+
61+
public void setImageUrl(String imageUrl) {
62+
this.imageUrl = imageUrl;
63+
putQueryParameter("ImageUrl", imageUrl);
64+
}
65+
66+
@Override
67+
public Class<ImagePornDetectionResponse> getResponseClass() {
68+
return ImagePornDetectionResponse.class;
69+
}
70+
71+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
package com.aliyuncs.live.model.v20161101;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.live.transform.v20161101.ImagePornDetectionResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class ImagePornDetectionResponse extends AcsResponse {
30+
31+
private String requestId;
32+
33+
private String label;
34+
35+
private Float rate;
36+
37+
public String getRequestId() {
38+
return this.requestId;
39+
}
40+
41+
public void setRequestId(String requestId) {
42+
this.requestId = requestId;
43+
}
44+
45+
public String getLabel() {
46+
return this.label;
47+
}
48+
49+
public void setLabel(String label) {
50+
this.label = label;
51+
}
52+
53+
public Float getRate() {
54+
return this.rate;
55+
}
56+
57+
public void setRate(Float rate) {
58+
this.rate = rate;
59+
}
60+
61+
@Override
62+
public ImagePornDetectionResponse getInstance(UnmarshallerContext context) {
63+
return ImagePornDetectionResponseUnmarshaller.unmarshall(this, context);
64+
}
65+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
package com.aliyuncs.live.transform.v20161101;
20+
21+
import com.aliyuncs.live.model.v20161101.ImagePornDetectionResponse;
22+
import com.aliyuncs.transform.UnmarshallerContext;
23+
24+
25+
public class ImagePornDetectionResponseUnmarshaller {
26+
27+
public static ImagePornDetectionResponse unmarshall(ImagePornDetectionResponse imagePornDetectionResponse, UnmarshallerContext context) {
28+
29+
imagePornDetectionResponse.setRequestId(context.stringValue("ImagePornDetectionResponse.RequestId"));
30+
imagePornDetectionResponse.setLabel(context.stringValue("ImagePornDetectionResponse.Label"));
31+
imagePornDetectionResponse.setRate(context.floatValue("ImagePornDetectionResponse.Rate"));
32+
33+
return imagePornDetectionResponse;
34+
}
35+
}

0 commit comments

Comments
 (0)