/aliyun-java-sdk-aliyuncvc/src/main/java/com/aliyuncs/aliyuncvc/model/v20191030/RegisterDeviceResponse.java

https://github.com/aliyun/aliyun-openapi-java-sdk · Java · 368 lines · 246 code · 105 blank · 17 comment · 0 complexity · 2a1f85206534c00d32a17869872355fb MD5 · raw file

  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. package com.aliyuncs.aliyuncvc.model.v20191030;
  15. import com.aliyuncs.AcsResponse;
  16. import com.aliyuncs.aliyuncvc.transform.v20191030.RegisterDeviceResponseUnmarshaller;
  17. import com.aliyuncs.transform.UnmarshallerContext;
  18. /**
  19. * @author auto create
  20. * @version
  21. */
  22. public class RegisterDeviceResponse extends AcsResponse {
  23. private Integer errorCode;
  24. private Boolean success;
  25. private String requestId;
  26. private String message;
  27. private DeviceInfo deviceInfo;
  28. public Integer getErrorCode() {
  29. return this.errorCode;
  30. }
  31. public void setErrorCode(Integer errorCode) {
  32. this.errorCode = errorCode;
  33. }
  34. public Boolean getSuccess() {
  35. return this.success;
  36. }
  37. public void setSuccess(Boolean success) {
  38. this.success = success;
  39. }
  40. public String getRequestId() {
  41. return this.requestId;
  42. }
  43. public void setRequestId(String requestId) {
  44. this.requestId = requestId;
  45. }
  46. public String getMessage() {
  47. return this.message;
  48. }
  49. public void setMessage(String message) {
  50. this.message = message;
  51. }
  52. public DeviceInfo getDeviceInfo() {
  53. return this.deviceInfo;
  54. }
  55. public void setDeviceInfo(DeviceInfo deviceInfo) {
  56. this.deviceInfo = deviceInfo;
  57. }
  58. public static class DeviceInfo {
  59. private String channelType;
  60. private Long registerTime;
  61. private String deviceName;
  62. private String deviceSessionId;
  63. private String messageKey;
  64. private String screenCode;
  65. private MqttParam mqttParam;
  66. private AuthWsChannelConfig authWsChannelConfig;
  67. private SlsConfig slsConfig;
  68. public String getChannelType() {
  69. return this.channelType;
  70. }
  71. public void setChannelType(String channelType) {
  72. this.channelType = channelType;
  73. }
  74. public Long getRegisterTime() {
  75. return this.registerTime;
  76. }
  77. public void setRegisterTime(Long registerTime) {
  78. this.registerTime = registerTime;
  79. }
  80. public String getDeviceName() {
  81. return this.deviceName;
  82. }
  83. public void setDeviceName(String deviceName) {
  84. this.deviceName = deviceName;
  85. }
  86. public String getDeviceSessionId() {
  87. return this.deviceSessionId;
  88. }
  89. public void setDeviceSessionId(String deviceSessionId) {
  90. this.deviceSessionId = deviceSessionId;
  91. }
  92. public String getMessageKey() {
  93. return this.messageKey;
  94. }
  95. public void setMessageKey(String messageKey) {
  96. this.messageKey = messageKey;
  97. }
  98. public String getScreenCode() {
  99. return this.screenCode;
  100. }
  101. public void setScreenCode(String screenCode) {
  102. this.screenCode = screenCode;
  103. }
  104. public MqttParam getMqttParam() {
  105. return this.mqttParam;
  106. }
  107. public void setMqttParam(MqttParam mqttParam) {
  108. this.mqttParam = mqttParam;
  109. }
  110. public AuthWsChannelConfig getAuthWsChannelConfig() {
  111. return this.authWsChannelConfig;
  112. }
  113. public void setAuthWsChannelConfig(AuthWsChannelConfig authWsChannelConfig) {
  114. this.authWsChannelConfig = authWsChannelConfig;
  115. }
  116. public SlsConfig getSlsConfig() {
  117. return this.slsConfig;
  118. }
  119. public void setSlsConfig(SlsConfig slsConfig) {
  120. this.slsConfig = slsConfig;
  121. }
  122. public static class MqttParam {
  123. private String clientId;
  124. private String groupId;
  125. private String cleanSession;
  126. private String password;
  127. private String port;
  128. private String host;
  129. private String topic;
  130. private String sDKClientPort;
  131. private String tLSPort;
  132. private String useTLS;
  133. private String userName;
  134. private String reconnectTimeout;
  135. public String getClientId() {
  136. return this.clientId;
  137. }
  138. public void setClientId(String clientId) {
  139. this.clientId = clientId;
  140. }
  141. public String getGroupId() {
  142. return this.groupId;
  143. }
  144. public void setGroupId(String groupId) {
  145. this.groupId = groupId;
  146. }
  147. public String getCleanSession() {
  148. return this.cleanSession;
  149. }
  150. public void setCleanSession(String cleanSession) {
  151. this.cleanSession = cleanSession;
  152. }
  153. public String getPassword() {
  154. return this.password;
  155. }
  156. public void setPassword(String password) {
  157. this.password = password;
  158. }
  159. public String getPort() {
  160. return this.port;
  161. }
  162. public void setPort(String port) {
  163. this.port = port;
  164. }
  165. public String getHost() {
  166. return this.host;
  167. }
  168. public void setHost(String host) {
  169. this.host = host;
  170. }
  171. public String getTopic() {
  172. return this.topic;
  173. }
  174. public void setTopic(String topic) {
  175. this.topic = topic;
  176. }
  177. public String getSDKClientPort() {
  178. return this.sDKClientPort;
  179. }
  180. public void setSDKClientPort(String sDKClientPort) {
  181. this.sDKClientPort = sDKClientPort;
  182. }
  183. public String getTLSPort() {
  184. return this.tLSPort;
  185. }
  186. public void setTLSPort(String tLSPort) {
  187. this.tLSPort = tLSPort;
  188. }
  189. public String getUseTLS() {
  190. return this.useTLS;
  191. }
  192. public void setUseTLS(String useTLS) {
  193. this.useTLS = useTLS;
  194. }
  195. public String getUserName() {
  196. return this.userName;
  197. }
  198. public void setUserName(String userName) {
  199. this.userName = userName;
  200. }
  201. public String getReconnectTimeout() {
  202. return this.reconnectTimeout;
  203. }
  204. public void setReconnectTimeout(String reconnectTimeout) {
  205. this.reconnectTimeout = reconnectTimeout;
  206. }
  207. }
  208. public static class AuthWsChannelConfig {
  209. private String authWsUrl;
  210. private Integer wsOuterReconnTime;
  211. private String token;
  212. public String getAuthWsUrl() {
  213. return this.authWsUrl;
  214. }
  215. public void setAuthWsUrl(String authWsUrl) {
  216. this.authWsUrl = authWsUrl;
  217. }
  218. public Integer getWsOuterReconnTime() {
  219. return this.wsOuterReconnTime;
  220. }
  221. public void setWsOuterReconnTime(Integer wsOuterReconnTime) {
  222. this.wsOuterReconnTime = wsOuterReconnTime;
  223. }
  224. public String getToken() {
  225. return this.token;
  226. }
  227. public void setToken(String token) {
  228. this.token = token;
  229. }
  230. }
  231. public static class SlsConfig {
  232. private String project;
  233. private String logStore;
  234. private String logServiceEndpoint;
  235. public String getProject() {
  236. return this.project;
  237. }
  238. public void setProject(String project) {
  239. this.project = project;
  240. }
  241. public String getLogStore() {
  242. return this.logStore;
  243. }
  244. public void setLogStore(String logStore) {
  245. this.logStore = logStore;
  246. }
  247. public String getLogServiceEndpoint() {
  248. return this.logServiceEndpoint;
  249. }
  250. public void setLogServiceEndpoint(String logServiceEndpoint) {
  251. this.logServiceEndpoint = logServiceEndpoint;
  252. }
  253. }
  254. }
  255. @Override
  256. public RegisterDeviceResponse getInstance(UnmarshallerContext context) {
  257. return RegisterDeviceResponseUnmarshaller.unmarshall(this, context);
  258. }
  259. @Override
  260. public boolean checkShowJsonItemName() {
  261. return false;
  262. }
  263. }