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

Skip to content

Commit c04490b

Browse files
author
归邪
committed
mts,iot sdk升级
1 parent bbfe3f9 commit c04490b

File tree

52 files changed

+2999
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2999
-2
lines changed

aliyun-java-sdk-iot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-iot</artifactId>
55
<packaging>jar</packaging>
6-
<version>2.0.3</version>
6+
<version>2.1.0</version>
77
<name>aliyun-java-sdk-iot</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.iot.model.v20160530;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
import java.util.List;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class ApplyDeviceWithNamesRequest extends RpcAcsRequest<ApplyDeviceWithNamesResponse> {
29+
30+
public ApplyDeviceWithNamesRequest() {
31+
super("Iot", "2016-05-30", "ApplyDeviceWithNames");
32+
}
33+
34+
private List<String> deviceNames;
35+
36+
private String productKey;
37+
38+
public List<String> getDeviceNames() {
39+
return this.deviceNames;
40+
}
41+
42+
public void setDeviceNames(List<String> deviceNames) {
43+
this.deviceNames = deviceNames;
44+
for (int i = 0; i < deviceNames.size(); i++) {
45+
putQueryParameter("DeviceName." + (i + 1) , deviceNames.get(i));
46+
}
47+
}
48+
49+
public String getProductKey() {
50+
return this.productKey;
51+
}
52+
53+
public void setProductKey(String productKey) {
54+
this.productKey = productKey;
55+
putQueryParameter("ProductKey", productKey);
56+
}
57+
58+
@Override
59+
public Class<ApplyDeviceWithNamesResponse> getResponseClass() {
60+
return ApplyDeviceWithNamesResponse.class;
61+
}
62+
63+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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.iot.model.v20160530;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.iot.transform.v20160530.ApplyDeviceWithNamesResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class ApplyDeviceWithNamesResponse extends AcsResponse {
30+
31+
private String requestId;
32+
33+
private Boolean success;
34+
35+
private String errorMessage;
36+
37+
private Long applyId;
38+
39+
public String getRequestId() {
40+
return this.requestId;
41+
}
42+
43+
public void setRequestId(String requestId) {
44+
this.requestId = requestId;
45+
}
46+
47+
public Boolean getSuccess() {
48+
return this.success;
49+
}
50+
51+
public void setSuccess(Boolean success) {
52+
this.success = success;
53+
}
54+
55+
public String getErrorMessage() {
56+
return this.errorMessage;
57+
}
58+
59+
public void setErrorMessage(String errorMessage) {
60+
this.errorMessage = errorMessage;
61+
}
62+
63+
public Long getApplyId() {
64+
return this.applyId;
65+
}
66+
67+
public void setApplyId(Long applyId) {
68+
this.applyId = applyId;
69+
}
70+
71+
@Override
72+
public ApplyDeviceWithNamesResponse getInstance(UnmarshallerContext context) {
73+
return ApplyDeviceWithNamesResponseUnmarshaller.unmarshall(this, context);
74+
}
75+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.iot.model.v20160530;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
import java.util.List;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class BatchGetDeviceStateRequest extends RpcAcsRequest<BatchGetDeviceStateResponse> {
29+
30+
public BatchGetDeviceStateRequest() {
31+
super("Iot", "2016-05-30", "BatchGetDeviceState");
32+
}
33+
34+
private List<String> deviceNames;
35+
36+
private String productKey;
37+
38+
public List<String> getDeviceNames() {
39+
return this.deviceNames;
40+
}
41+
42+
public void setDeviceNames(List<String> deviceNames) {
43+
this.deviceNames = deviceNames;
44+
for (int i = 0; i < deviceNames.size(); i++) {
45+
putQueryParameter("DeviceName." + (i + 1) , deviceNames.get(i));
46+
}
47+
}
48+
49+
public String getProductKey() {
50+
return this.productKey;
51+
}
52+
53+
public void setProductKey(String productKey) {
54+
this.productKey = productKey;
55+
putQueryParameter("ProductKey", productKey);
56+
}
57+
58+
@Override
59+
public Class<BatchGetDeviceStateResponse> getResponseClass() {
60+
return BatchGetDeviceStateResponse.class;
61+
}
62+
63+
}
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
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.iot.model.v20160530;
20+
21+
import java.util.List;
22+
import com.aliyuncs.AcsResponse;
23+
import com.aliyuncs.iot.transform.v20160530.BatchGetDeviceStateResponseUnmarshaller;
24+
import com.aliyuncs.transform.UnmarshallerContext;
25+
26+
/**
27+
* @author auto create
28+
* @version
29+
*/
30+
public class BatchGetDeviceStateResponse extends AcsResponse {
31+
32+
private String requestId;
33+
34+
private Boolean success;
35+
36+
private String errorMessage;
37+
38+
private List<DeviceStatus> deviceStatusList;
39+
40+
public String getRequestId() {
41+
return this.requestId;
42+
}
43+
44+
public void setRequestId(String requestId) {
45+
this.requestId = requestId;
46+
}
47+
48+
public Boolean getSuccess() {
49+
return this.success;
50+
}
51+
52+
public void setSuccess(Boolean success) {
53+
this.success = success;
54+
}
55+
56+
public String getErrorMessage() {
57+
return this.errorMessage;
58+
}
59+
60+
public void setErrorMessage(String errorMessage) {
61+
this.errorMessage = errorMessage;
62+
}
63+
64+
public List<DeviceStatus> getDeviceStatusList() {
65+
return this.deviceStatusList;
66+
}
67+
68+
public void setDeviceStatusList(List<DeviceStatus> deviceStatusList) {
69+
this.deviceStatusList = deviceStatusList;
70+
}
71+
72+
public static class DeviceStatus {
73+
74+
private String deviceId;
75+
76+
private String deviceName;
77+
78+
private String status;
79+
80+
private String asAddress;
81+
82+
public String getDeviceId() {
83+
return this.deviceId;
84+
}
85+
86+
public void setDeviceId(String deviceId) {
87+
this.deviceId = deviceId;
88+
}
89+
90+
public String getDeviceName() {
91+
return this.deviceName;
92+
}
93+
94+
public void setDeviceName(String deviceName) {
95+
this.deviceName = deviceName;
96+
}
97+
98+
public String getStatus() {
99+
return this.status;
100+
}
101+
102+
public void setStatus(String status) {
103+
this.status = status;
104+
}
105+
106+
public String getAsAddress() {
107+
return this.asAddress;
108+
}
109+
110+
public void setAsAddress(String asAddress) {
111+
this.asAddress = asAddress;
112+
}
113+
}
114+
115+
@Override
116+
public BatchGetDeviceStateResponse getInstance(UnmarshallerContext context) {
117+
return BatchGetDeviceStateResponseUnmarshaller.unmarshall(this, context);
118+
}
119+
}

0 commit comments

Comments
 (0)