From 3365fe538604c4d2779b6fd4db65d31d3a4b6ecf Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 20 Dec 2023 01:40:09 +0000 Subject: [PATCH] Add RTMP device related interfaces. --- aliyun-java-sdk-linkvisual/ChangeLog.txt | 3 + aliyun-java-sdk-linkvisual/pom.xml | 2 +- .../BatchQueryVisionDeviceInfoRequest.java | 98 ++++++ .../BatchQueryVisionDeviceInfoResponse.java | 289 ++++++++++++++++++ .../v20180120/CreateRtmpDeviceRequest.java | 158 ++++++++++ .../v20180120/CreateRtmpDeviceResponse.java | 114 +++++++ .../v20180120/DeleteRtmpDeviceRequest.java | 93 ++++++ .../v20180120/DeleteRtmpDeviceResponse.java | 71 +++++ .../model/v20180120/DeleteRtmpKeyRequest.java | 106 +++++++ .../v20180120/DeleteRtmpKeyResponse.java | 71 +++++ .../model/v20180120/QueryRtmpKeyRequest.java | 93 ++++++ .../model/v20180120/QueryRtmpKeyResponse.java | 134 ++++++++ .../QueryVisionDeviceInfoRequest.java | 93 ++++++ .../QueryVisionDeviceInfoResponse.java | 260 ++++++++++++++++ .../model/v20180120/UpdateRtmpKeyRequest.java | 145 +++++++++ .../v20180120/UpdateRtmpKeyResponse.java | 71 +++++ ...yVisionDeviceInfoResponseUnmarshaller.java | 72 +++++ .../CreateRtmpDeviceResponseUnmarshaller.java | 39 +++ .../DeleteRtmpDeviceResponseUnmarshaller.java | 32 ++ .../DeleteRtmpKeyResponseUnmarshaller.java | 32 ++ .../QueryRtmpKeyResponseUnmarshaller.java | 41 +++ ...yVisionDeviceInfoResponseUnmarshaller.java | 59 ++++ .../UpdateRtmpKeyResponseUnmarshaller.java | 32 ++ 23 files changed, 2107 insertions(+), 1 deletion(-) create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/BatchQueryVisionDeviceInfoRequest.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/BatchQueryVisionDeviceInfoResponse.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateRtmpDeviceRequest.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateRtmpDeviceResponse.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpDeviceRequest.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpDeviceResponse.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpKeyRequest.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpKeyResponse.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRtmpKeyRequest.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRtmpKeyResponse.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryVisionDeviceInfoRequest.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryVisionDeviceInfoResponse.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/UpdateRtmpKeyRequest.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/UpdateRtmpKeyResponse.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/BatchQueryVisionDeviceInfoResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/CreateRtmpDeviceResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/DeleteRtmpDeviceResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/DeleteRtmpKeyResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryRtmpKeyResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryVisionDeviceInfoResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/UpdateRtmpKeyResponseUnmarshaller.java diff --git a/aliyun-java-sdk-linkvisual/ChangeLog.txt b/aliyun-java-sdk-linkvisual/ChangeLog.txt index 57690e6ae1..e1373a3190 100644 --- a/aliyun-java-sdk-linkvisual/ChangeLog.txt +++ b/aliyun-java-sdk-linkvisual/ChangeLog.txt @@ -1,3 +1,6 @@ +2023-12-20 Version: 1.5.18 +- Add RTMP device related interfaces. + 2023-11-16 Version: 1.5.17 - 新增按时间下载本地录像接口. diff --git a/aliyun-java-sdk-linkvisual/pom.xml b/aliyun-java-sdk-linkvisual/pom.xml index d1d195a0ff..7c12f5d445 100644 --- a/aliyun-java-sdk-linkvisual/pom.xml +++ b/aliyun-java-sdk-linkvisual/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-linkvisual jar - 1.5.17 + 1.5.18 aliyun-java-sdk-linkvisual http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/BatchQueryVisionDeviceInfoRequest.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/BatchQueryVisionDeviceInfoRequest.java new file mode 100644 index 0000000000..d8478c66c6 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/BatchQueryVisionDeviceInfoRequest.java @@ -0,0 +1,98 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.linkvisual.Endpoint; + +/** + * @author auto create + * @version + */ +public class BatchQueryVisionDeviceInfoRequest extends RpcAcsRequest { + + + private List deviceNameLists; + + private String iotInstanceId; + + private List iotIdLists; + + private String productKey; + public BatchQueryVisionDeviceInfoRequest() { + super("Linkvisual", "2018-01-20", "BatchQueryVisionDeviceInfo", "Linkvisual"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getDeviceNameLists() { + return this.deviceNameLists; + } + + public void setDeviceNameLists(List deviceNameLists) { + this.deviceNameLists = deviceNameLists; + if (deviceNameLists != null) { + for (int i = 0; i < deviceNameLists.size(); i++) { + putQueryParameter("DeviceNameList." + (i + 1) , deviceNameLists.get(i)); + } + } + } + + public String getIotInstanceId() { + return this.iotInstanceId; + } + + public void setIotInstanceId(String iotInstanceId) { + this.iotInstanceId = iotInstanceId; + if(iotInstanceId != null){ + putQueryParameter("IotInstanceId", iotInstanceId); + } + } + + public List getIotIdLists() { + return this.iotIdLists; + } + + public void setIotIdLists(List iotIdLists) { + this.iotIdLists = iotIdLists; + if (iotIdLists != null) { + for (int i = 0; i < iotIdLists.size(); i++) { + putQueryParameter("IotIdList." + (i + 1) , iotIdLists.get(i)); + } + } + } + + public String getProductKey() { + return this.productKey; + } + + public void setProductKey(String productKey) { + this.productKey = productKey; + if(productKey != null){ + putQueryParameter("ProductKey", productKey); + } + } + + @Override + public Class getResponseClass() { + return BatchQueryVisionDeviceInfoResponse.class; + } + +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/BatchQueryVisionDeviceInfoResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/BatchQueryVisionDeviceInfoResponse.java new file mode 100644 index 0000000000..fa8f70ccba --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/BatchQueryVisionDeviceInfoResponse.java @@ -0,0 +1,289 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.linkvisual.transform.v20180120.BatchQueryVisionDeviceInfoResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class BatchQueryVisionDeviceInfoResponse extends AcsResponse { + + private String code; + + private String errorMessage; + + private String requestId; + + private Boolean success; + + private Data data; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private List deviceInfoList; + + public List getDeviceInfoList() { + return this.deviceInfoList; + } + + public void setDeviceInfoList(List deviceInfoList) { + this.deviceInfoList = deviceInfoList; + } + + public static class DeviceInfo { + + private String description; + + private Integer deviceType; + + private String iotId; + + private GbDeviceInfo gbDeviceInfo; + + private RtmpDeviceInfo rtmpDeviceInfo; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getDeviceType() { + return this.deviceType; + } + + public void setDeviceType(Integer deviceType) { + this.deviceType = deviceType; + } + + public String getIotId() { + return this.iotId; + } + + public void setIotId(String iotId) { + this.iotId = iotId; + } + + public GbDeviceInfo getGbDeviceInfo() { + return this.gbDeviceInfo; + } + + public void setGbDeviceInfo(GbDeviceInfo gbDeviceInfo) { + this.gbDeviceInfo = gbDeviceInfo; + } + + public RtmpDeviceInfo getRtmpDeviceInfo() { + return this.rtmpDeviceInfo; + } + + public void setRtmpDeviceInfo(RtmpDeviceInfo rtmpDeviceInfo) { + this.rtmpDeviceInfo = rtmpDeviceInfo; + } + + public static class GbDeviceInfo { + + private String gbId; + + private String password; + + private String nickName; + + private String subProductKey; + + private Integer deviceProtocol; + + private Integer netProtocol; + + public String getGbId() { + return this.gbId; + } + + public void setGbId(String gbId) { + this.gbId = gbId; + } + + public String getPassword() { + return this.password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getNickName() { + return this.nickName; + } + + public void setNickName(String nickName) { + this.nickName = nickName; + } + + public String getSubProductKey() { + return this.subProductKey; + } + + public void setSubProductKey(String subProductKey) { + this.subProductKey = subProductKey; + } + + public Integer getDeviceProtocol() { + return this.deviceProtocol; + } + + public void setDeviceProtocol(Integer deviceProtocol) { + this.deviceProtocol = deviceProtocol; + } + + public Integer getNetProtocol() { + return this.netProtocol; + } + + public void setNetProtocol(Integer netProtocol) { + this.netProtocol = netProtocol; + } + } + + public static class RtmpDeviceInfo { + + private Integer streamStatus; + + private Integer pushKeyExpireTime; + + private String streamName; + + private String pushAuthKey; + + private String pullAuthKey; + + private Integer pullKeyExpireTime; + + private String pushUrlSample; + + public Integer getStreamStatus() { + return this.streamStatus; + } + + public void setStreamStatus(Integer streamStatus) { + this.streamStatus = streamStatus; + } + + public Integer getPushKeyExpireTime() { + return this.pushKeyExpireTime; + } + + public void setPushKeyExpireTime(Integer pushKeyExpireTime) { + this.pushKeyExpireTime = pushKeyExpireTime; + } + + public String getStreamName() { + return this.streamName; + } + + public void setStreamName(String streamName) { + this.streamName = streamName; + } + + public String getPushAuthKey() { + return this.pushAuthKey; + } + + public void setPushAuthKey(String pushAuthKey) { + this.pushAuthKey = pushAuthKey; + } + + public String getPullAuthKey() { + return this.pullAuthKey; + } + + public void setPullAuthKey(String pullAuthKey) { + this.pullAuthKey = pullAuthKey; + } + + public Integer getPullKeyExpireTime() { + return this.pullKeyExpireTime; + } + + public void setPullKeyExpireTime(Integer pullKeyExpireTime) { + this.pullKeyExpireTime = pullKeyExpireTime; + } + + public String getPushUrlSample() { + return this.pushUrlSample; + } + + public void setPushUrlSample(String pushUrlSample) { + this.pushUrlSample = pushUrlSample; + } + } + } + } + + @Override + public BatchQueryVisionDeviceInfoResponse getInstance(UnmarshallerContext context) { + return BatchQueryVisionDeviceInfoResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateRtmpDeviceRequest.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateRtmpDeviceRequest.java new file mode 100644 index 0000000000..b8ad234bcd --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateRtmpDeviceRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.linkvisual.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateRtmpDeviceRequest extends RpcAcsRequest { + + + private String description; + + private String pushAuthKey; + + private String iotInstanceId; + + private Integer pushKeyExpireTime; + + private String pullAuthKey; + + private String subStreamName; + + private String productKey; + + private String deviceName; + + private Integer pullKeyExpireTime; + public CreateRtmpDeviceRequest() { + super("Linkvisual", "2018-01-20", "CreateRtmpDevice", "Linkvisual"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getPushAuthKey() { + return this.pushAuthKey; + } + + public void setPushAuthKey(String pushAuthKey) { + this.pushAuthKey = pushAuthKey; + if(pushAuthKey != null){ + putQueryParameter("PushAuthKey", pushAuthKey); + } + } + + public String getIotInstanceId() { + return this.iotInstanceId; + } + + public void setIotInstanceId(String iotInstanceId) { + this.iotInstanceId = iotInstanceId; + if(iotInstanceId != null){ + putQueryParameter("IotInstanceId", iotInstanceId); + } + } + + public Integer getPushKeyExpireTime() { + return this.pushKeyExpireTime; + } + + public void setPushKeyExpireTime(Integer pushKeyExpireTime) { + this.pushKeyExpireTime = pushKeyExpireTime; + if(pushKeyExpireTime != null){ + putQueryParameter("PushKeyExpireTime", pushKeyExpireTime.toString()); + } + } + + public String getPullAuthKey() { + return this.pullAuthKey; + } + + public void setPullAuthKey(String pullAuthKey) { + this.pullAuthKey = pullAuthKey; + if(pullAuthKey != null){ + putQueryParameter("PullAuthKey", pullAuthKey); + } + } + + public String getSubStreamName() { + return this.subStreamName; + } + + public void setSubStreamName(String subStreamName) { + this.subStreamName = subStreamName; + if(subStreamName != null){ + putQueryParameter("SubStreamName", subStreamName); + } + } + + public String getProductKey() { + return this.productKey; + } + + public void setProductKey(String productKey) { + this.productKey = productKey; + if(productKey != null){ + putQueryParameter("ProductKey", productKey); + } + } + + public String getDeviceName() { + return this.deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + if(deviceName != null){ + putQueryParameter("DeviceName", deviceName); + } + } + + public Integer getPullKeyExpireTime() { + return this.pullKeyExpireTime; + } + + public void setPullKeyExpireTime(Integer pullKeyExpireTime) { + this.pullKeyExpireTime = pullKeyExpireTime; + if(pullKeyExpireTime != null){ + putQueryParameter("PullKeyExpireTime", pullKeyExpireTime.toString()); + } + } + + @Override + public Class getResponseClass() { + return CreateRtmpDeviceResponse.class; + } + +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateRtmpDeviceResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateRtmpDeviceResponse.java new file mode 100644 index 0000000000..f4a43fb1f9 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateRtmpDeviceResponse.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.linkvisual.transform.v20180120.CreateRtmpDeviceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateRtmpDeviceResponse extends AcsResponse { + + private String code; + + private String errorMessage; + + private String requestId; + + private Boolean success; + + private Data data; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String deviceName; + + private String streamName; + + private String iotId; + + public String getDeviceName() { + return this.deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getStreamName() { + return this.streamName; + } + + public void setStreamName(String streamName) { + this.streamName = streamName; + } + + public String getIotId() { + return this.iotId; + } + + public void setIotId(String iotId) { + this.iotId = iotId; + } + } + + @Override + public CreateRtmpDeviceResponse getInstance(UnmarshallerContext context) { + return CreateRtmpDeviceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpDeviceRequest.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpDeviceRequest.java new file mode 100644 index 0000000000..143404d5e6 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpDeviceRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.linkvisual.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteRtmpDeviceRequest extends RpcAcsRequest { + + + private String iotId; + + private String iotInstanceId; + + private String productKey; + + private String deviceName; + public DeleteRtmpDeviceRequest() { + super("Linkvisual", "2018-01-20", "DeleteRtmpDevice", "Linkvisual"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getIotId() { + return this.iotId; + } + + public void setIotId(String iotId) { + this.iotId = iotId; + if(iotId != null){ + putQueryParameter("IotId", iotId); + } + } + + public String getIotInstanceId() { + return this.iotInstanceId; + } + + public void setIotInstanceId(String iotInstanceId) { + this.iotInstanceId = iotInstanceId; + if(iotInstanceId != null){ + putQueryParameter("IotInstanceId", iotInstanceId); + } + } + + public String getProductKey() { + return this.productKey; + } + + public void setProductKey(String productKey) { + this.productKey = productKey; + if(productKey != null){ + putQueryParameter("ProductKey", productKey); + } + } + + public String getDeviceName() { + return this.deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + if(deviceName != null){ + putQueryParameter("DeviceName", deviceName); + } + } + + @Override + public Class getResponseClass() { + return DeleteRtmpDeviceResponse.class; + } + +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpDeviceResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpDeviceResponse.java new file mode 100644 index 0000000000..48c9e911e7 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpDeviceResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.linkvisual.transform.v20180120.DeleteRtmpDeviceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteRtmpDeviceResponse extends AcsResponse { + + private String code; + + private String errorMessage; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public DeleteRtmpDeviceResponse getInstance(UnmarshallerContext context) { + return DeleteRtmpDeviceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpKeyRequest.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpKeyRequest.java new file mode 100644 index 0000000000..36b198ef47 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpKeyRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.linkvisual.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteRtmpKeyRequest extends RpcAcsRequest { + + + private Integer type; + + private String iotId; + + private String iotInstanceId; + + private String productKey; + + private String deviceName; + public DeleteRtmpKeyRequest() { + super("Linkvisual", "2018-01-20", "DeleteRtmpKey", "Linkvisual"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Integer getType() { + return this.type; + } + + public void setType(Integer type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type.toString()); + } + } + + public String getIotId() { + return this.iotId; + } + + public void setIotId(String iotId) { + this.iotId = iotId; + if(iotId != null){ + putQueryParameter("IotId", iotId); + } + } + + public String getIotInstanceId() { + return this.iotInstanceId; + } + + public void setIotInstanceId(String iotInstanceId) { + this.iotInstanceId = iotInstanceId; + if(iotInstanceId != null){ + putQueryParameter("IotInstanceId", iotInstanceId); + } + } + + public String getProductKey() { + return this.productKey; + } + + public void setProductKey(String productKey) { + this.productKey = productKey; + if(productKey != null){ + putQueryParameter("ProductKey", productKey); + } + } + + public String getDeviceName() { + return this.deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + if(deviceName != null){ + putQueryParameter("DeviceName", deviceName); + } + } + + @Override + public Class getResponseClass() { + return DeleteRtmpKeyResponse.class; + } + +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpKeyResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpKeyResponse.java new file mode 100644 index 0000000000..6bb885f8b5 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/DeleteRtmpKeyResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.linkvisual.transform.v20180120.DeleteRtmpKeyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteRtmpKeyResponse extends AcsResponse { + + private String code; + + private String errorMessage; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public DeleteRtmpKeyResponse getInstance(UnmarshallerContext context) { + return DeleteRtmpKeyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRtmpKeyRequest.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRtmpKeyRequest.java new file mode 100644 index 0000000000..7bda3175c9 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRtmpKeyRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.linkvisual.Endpoint; + +/** + * @author auto create + * @version + */ +public class QueryRtmpKeyRequest extends RpcAcsRequest { + + + private String iotId; + + private String iotInstanceId; + + private String productKey; + + private String deviceName; + public QueryRtmpKeyRequest() { + super("Linkvisual", "2018-01-20", "QueryRtmpKey", "Linkvisual"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getIotId() { + return this.iotId; + } + + public void setIotId(String iotId) { + this.iotId = iotId; + if(iotId != null){ + putQueryParameter("IotId", iotId); + } + } + + public String getIotInstanceId() { + return this.iotInstanceId; + } + + public void setIotInstanceId(String iotInstanceId) { + this.iotInstanceId = iotInstanceId; + if(iotInstanceId != null){ + putQueryParameter("IotInstanceId", iotInstanceId); + } + } + + public String getProductKey() { + return this.productKey; + } + + public void setProductKey(String productKey) { + this.productKey = productKey; + if(productKey != null){ + putQueryParameter("ProductKey", productKey); + } + } + + public String getDeviceName() { + return this.deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + if(deviceName != null){ + putQueryParameter("DeviceName", deviceName); + } + } + + @Override + public Class getResponseClass() { + return QueryRtmpKeyResponse.class; + } + +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRtmpKeyResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRtmpKeyResponse.java new file mode 100644 index 0000000000..03d97f34c7 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRtmpKeyResponse.java @@ -0,0 +1,134 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.linkvisual.transform.v20180120.QueryRtmpKeyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class QueryRtmpKeyResponse extends AcsResponse { + + private String code; + + private String errorMessage; + + private String requestId; + + private Boolean success; + + private Data data; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String pullAuthKey; + + private Integer pullKeyExpireTime; + + private Integer pushKeyExpireTime; + + private String streamName; + + private String pushAuthKey; + + public String getPullAuthKey() { + return this.pullAuthKey; + } + + public void setPullAuthKey(String pullAuthKey) { + this.pullAuthKey = pullAuthKey; + } + + public Integer getPullKeyExpireTime() { + return this.pullKeyExpireTime; + } + + public void setPullKeyExpireTime(Integer pullKeyExpireTime) { + this.pullKeyExpireTime = pullKeyExpireTime; + } + + public Integer getPushKeyExpireTime() { + return this.pushKeyExpireTime; + } + + public void setPushKeyExpireTime(Integer pushKeyExpireTime) { + this.pushKeyExpireTime = pushKeyExpireTime; + } + + public String getStreamName() { + return this.streamName; + } + + public void setStreamName(String streamName) { + this.streamName = streamName; + } + + public String getPushAuthKey() { + return this.pushAuthKey; + } + + public void setPushAuthKey(String pushAuthKey) { + this.pushAuthKey = pushAuthKey; + } + } + + @Override + public QueryRtmpKeyResponse getInstance(UnmarshallerContext context) { + return QueryRtmpKeyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryVisionDeviceInfoRequest.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryVisionDeviceInfoRequest.java new file mode 100644 index 0000000000..44ea7b23aa --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryVisionDeviceInfoRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.linkvisual.Endpoint; + +/** + * @author auto create + * @version + */ +public class QueryVisionDeviceInfoRequest extends RpcAcsRequest { + + + private String iotId; + + private String iotInstanceId; + + private String productKey; + + private String deviceName; + public QueryVisionDeviceInfoRequest() { + super("Linkvisual", "2018-01-20", "QueryVisionDeviceInfo", "Linkvisual"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getIotId() { + return this.iotId; + } + + public void setIotId(String iotId) { + this.iotId = iotId; + if(iotId != null){ + putQueryParameter("IotId", iotId); + } + } + + public String getIotInstanceId() { + return this.iotInstanceId; + } + + public void setIotInstanceId(String iotInstanceId) { + this.iotInstanceId = iotInstanceId; + if(iotInstanceId != null){ + putQueryParameter("IotInstanceId", iotInstanceId); + } + } + + public String getProductKey() { + return this.productKey; + } + + public void setProductKey(String productKey) { + this.productKey = productKey; + if(productKey != null){ + putQueryParameter("ProductKey", productKey); + } + } + + public String getDeviceName() { + return this.deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + if(deviceName != null){ + putQueryParameter("DeviceName", deviceName); + } + } + + @Override + public Class getResponseClass() { + return QueryVisionDeviceInfoResponse.class; + } + +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryVisionDeviceInfoResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryVisionDeviceInfoResponse.java new file mode 100644 index 0000000000..b37d2b40cc --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryVisionDeviceInfoResponse.java @@ -0,0 +1,260 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.linkvisual.transform.v20180120.QueryVisionDeviceInfoResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class QueryVisionDeviceInfoResponse extends AcsResponse { + + private String code; + + private String errorMessage; + + private String requestId; + + private Boolean success; + + private Data data; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String description; + + private Integer deviceType; + + private GbDeviceInfo gbDeviceInfo; + + private RtmpDeviceInfo rtmpDeviceInfo; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getDeviceType() { + return this.deviceType; + } + + public void setDeviceType(Integer deviceType) { + this.deviceType = deviceType; + } + + public GbDeviceInfo getGbDeviceInfo() { + return this.gbDeviceInfo; + } + + public void setGbDeviceInfo(GbDeviceInfo gbDeviceInfo) { + this.gbDeviceInfo = gbDeviceInfo; + } + + public RtmpDeviceInfo getRtmpDeviceInfo() { + return this.rtmpDeviceInfo; + } + + public void setRtmpDeviceInfo(RtmpDeviceInfo rtmpDeviceInfo) { + this.rtmpDeviceInfo = rtmpDeviceInfo; + } + + public static class GbDeviceInfo { + + private String gbId; + + private String password; + + private String nickName; + + private String subProductKey; + + private Integer deviceProtocol; + + private Integer netProtocol; + + public String getGbId() { + return this.gbId; + } + + public void setGbId(String gbId) { + this.gbId = gbId; + } + + public String getPassword() { + return this.password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getNickName() { + return this.nickName; + } + + public void setNickName(String nickName) { + this.nickName = nickName; + } + + public String getSubProductKey() { + return this.subProductKey; + } + + public void setSubProductKey(String subProductKey) { + this.subProductKey = subProductKey; + } + + public Integer getDeviceProtocol() { + return this.deviceProtocol; + } + + public void setDeviceProtocol(Integer deviceProtocol) { + this.deviceProtocol = deviceProtocol; + } + + public Integer getNetProtocol() { + return this.netProtocol; + } + + public void setNetProtocol(Integer netProtocol) { + this.netProtocol = netProtocol; + } + } + + public static class RtmpDeviceInfo { + + private Integer streamStatus; + + private Integer pushKeyExpireTime; + + private String streamName; + + private String pushAuthKey; + + private String pullAuthKey; + + private Integer pullKeyExpireTime; + + private String pushUrlSample; + + public Integer getStreamStatus() { + return this.streamStatus; + } + + public void setStreamStatus(Integer streamStatus) { + this.streamStatus = streamStatus; + } + + public Integer getPushKeyExpireTime() { + return this.pushKeyExpireTime; + } + + public void setPushKeyExpireTime(Integer pushKeyExpireTime) { + this.pushKeyExpireTime = pushKeyExpireTime; + } + + public String getStreamName() { + return this.streamName; + } + + public void setStreamName(String streamName) { + this.streamName = streamName; + } + + public String getPushAuthKey() { + return this.pushAuthKey; + } + + public void setPushAuthKey(String pushAuthKey) { + this.pushAuthKey = pushAuthKey; + } + + public String getPullAuthKey() { + return this.pullAuthKey; + } + + public void setPullAuthKey(String pullAuthKey) { + this.pullAuthKey = pullAuthKey; + } + + public Integer getPullKeyExpireTime() { + return this.pullKeyExpireTime; + } + + public void setPullKeyExpireTime(Integer pullKeyExpireTime) { + this.pullKeyExpireTime = pullKeyExpireTime; + } + + public String getPushUrlSample() { + return this.pushUrlSample; + } + + public void setPushUrlSample(String pushUrlSample) { + this.pushUrlSample = pushUrlSample; + } + } + } + + @Override + public QueryVisionDeviceInfoResponse getInstance(UnmarshallerContext context) { + return QueryVisionDeviceInfoResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/UpdateRtmpKeyRequest.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/UpdateRtmpKeyRequest.java new file mode 100644 index 0000000000..f48d84d917 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/UpdateRtmpKeyRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.linkvisual.Endpoint; + +/** + * @author auto create + * @version + */ +public class UpdateRtmpKeyRequest extends RpcAcsRequest { + + + private String pushAuthKey; + + private String iotId; + + private String iotInstanceId; + + private Integer pushKeyExpireTime; + + private String pullAuthKey; + + private String productKey; + + private String deviceName; + + private Integer pullKeyExpireTime; + public UpdateRtmpKeyRequest() { + super("Linkvisual", "2018-01-20", "UpdateRtmpKey", "Linkvisual"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getPushAuthKey() { + return this.pushAuthKey; + } + + public void setPushAuthKey(String pushAuthKey) { + this.pushAuthKey = pushAuthKey; + if(pushAuthKey != null){ + putQueryParameter("PushAuthKey", pushAuthKey); + } + } + + public String getIotId() { + return this.iotId; + } + + public void setIotId(String iotId) { + this.iotId = iotId; + if(iotId != null){ + putQueryParameter("IotId", iotId); + } + } + + public String getIotInstanceId() { + return this.iotInstanceId; + } + + public void setIotInstanceId(String iotInstanceId) { + this.iotInstanceId = iotInstanceId; + if(iotInstanceId != null){ + putQueryParameter("IotInstanceId", iotInstanceId); + } + } + + public Integer getPushKeyExpireTime() { + return this.pushKeyExpireTime; + } + + public void setPushKeyExpireTime(Integer pushKeyExpireTime) { + this.pushKeyExpireTime = pushKeyExpireTime; + if(pushKeyExpireTime != null){ + putQueryParameter("PushKeyExpireTime", pushKeyExpireTime.toString()); + } + } + + public String getPullAuthKey() { + return this.pullAuthKey; + } + + public void setPullAuthKey(String pullAuthKey) { + this.pullAuthKey = pullAuthKey; + if(pullAuthKey != null){ + putQueryParameter("PullAuthKey", pullAuthKey); + } + } + + public String getProductKey() { + return this.productKey; + } + + public void setProductKey(String productKey) { + this.productKey = productKey; + if(productKey != null){ + putQueryParameter("ProductKey", productKey); + } + } + + public String getDeviceName() { + return this.deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + if(deviceName != null){ + putQueryParameter("DeviceName", deviceName); + } + } + + public Integer getPullKeyExpireTime() { + return this.pullKeyExpireTime; + } + + public void setPullKeyExpireTime(Integer pullKeyExpireTime) { + this.pullKeyExpireTime = pullKeyExpireTime; + if(pullKeyExpireTime != null){ + putQueryParameter("PullKeyExpireTime", pullKeyExpireTime.toString()); + } + } + + @Override + public Class getResponseClass() { + return UpdateRtmpKeyResponse.class; + } + +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/UpdateRtmpKeyResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/UpdateRtmpKeyResponse.java new file mode 100644 index 0000000000..84bf135e16 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/UpdateRtmpKeyResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.model.v20180120; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.linkvisual.transform.v20180120.UpdateRtmpKeyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UpdateRtmpKeyResponse extends AcsResponse { + + private String code; + + private String errorMessage; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public UpdateRtmpKeyResponse getInstance(UnmarshallerContext context) { + return UpdateRtmpKeyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/BatchQueryVisionDeviceInfoResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/BatchQueryVisionDeviceInfoResponseUnmarshaller.java new file mode 100644 index 0000000000..73dabc6046 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/BatchQueryVisionDeviceInfoResponseUnmarshaller.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.transform.v20180120; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.linkvisual.model.v20180120.BatchQueryVisionDeviceInfoResponse; +import com.aliyuncs.linkvisual.model.v20180120.BatchQueryVisionDeviceInfoResponse.Data; +import com.aliyuncs.linkvisual.model.v20180120.BatchQueryVisionDeviceInfoResponse.Data.DeviceInfo; +import com.aliyuncs.linkvisual.model.v20180120.BatchQueryVisionDeviceInfoResponse.Data.DeviceInfo.GbDeviceInfo; +import com.aliyuncs.linkvisual.model.v20180120.BatchQueryVisionDeviceInfoResponse.Data.DeviceInfo.RtmpDeviceInfo; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class BatchQueryVisionDeviceInfoResponseUnmarshaller { + + public static BatchQueryVisionDeviceInfoResponse unmarshall(BatchQueryVisionDeviceInfoResponse batchQueryVisionDeviceInfoResponse, UnmarshallerContext _ctx) { + + batchQueryVisionDeviceInfoResponse.setRequestId(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.RequestId")); + batchQueryVisionDeviceInfoResponse.setCode(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Code")); + batchQueryVisionDeviceInfoResponse.setErrorMessage(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.ErrorMessage")); + batchQueryVisionDeviceInfoResponse.setSuccess(_ctx.booleanValue("BatchQueryVisionDeviceInfoResponse.Success")); + + Data data = new Data(); + + List deviceInfoList = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList.Length"); i++) { + DeviceInfo deviceInfo = new DeviceInfo(); + deviceInfo.setDescription(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].Description")); + deviceInfo.setDeviceType(_ctx.integerValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].DeviceType")); + deviceInfo.setIotId(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].IotId")); + + GbDeviceInfo gbDeviceInfo = new GbDeviceInfo(); + gbDeviceInfo.setGbId(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].GbDeviceInfo.GbId")); + gbDeviceInfo.setPassword(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].GbDeviceInfo.Password")); + gbDeviceInfo.setNickName(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].GbDeviceInfo.NickName")); + gbDeviceInfo.setSubProductKey(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].GbDeviceInfo.SubProductKey")); + gbDeviceInfo.setDeviceProtocol(_ctx.integerValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].GbDeviceInfo.DeviceProtocol")); + gbDeviceInfo.setNetProtocol(_ctx.integerValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].GbDeviceInfo.NetProtocol")); + deviceInfo.setGbDeviceInfo(gbDeviceInfo); + + RtmpDeviceInfo rtmpDeviceInfo = new RtmpDeviceInfo(); + rtmpDeviceInfo.setStreamStatus(_ctx.integerValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].RtmpDeviceInfo.StreamStatus")); + rtmpDeviceInfo.setPushKeyExpireTime(_ctx.integerValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].RtmpDeviceInfo.PushKeyExpireTime")); + rtmpDeviceInfo.setStreamName(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].RtmpDeviceInfo.StreamName")); + rtmpDeviceInfo.setPushAuthKey(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].RtmpDeviceInfo.PushAuthKey")); + rtmpDeviceInfo.setPullAuthKey(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].RtmpDeviceInfo.PullAuthKey")); + rtmpDeviceInfo.setPullKeyExpireTime(_ctx.integerValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].RtmpDeviceInfo.PullKeyExpireTime")); + rtmpDeviceInfo.setPushUrlSample(_ctx.stringValue("BatchQueryVisionDeviceInfoResponse.Data.DeviceInfoList["+ i +"].RtmpDeviceInfo.PushUrlSample")); + deviceInfo.setRtmpDeviceInfo(rtmpDeviceInfo); + + deviceInfoList.add(deviceInfo); + } + data.setDeviceInfoList(deviceInfoList); + batchQueryVisionDeviceInfoResponse.setData(data); + + return batchQueryVisionDeviceInfoResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/CreateRtmpDeviceResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/CreateRtmpDeviceResponseUnmarshaller.java new file mode 100644 index 0000000000..61b22a867b --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/CreateRtmpDeviceResponseUnmarshaller.java @@ -0,0 +1,39 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.transform.v20180120; + +import com.aliyuncs.linkvisual.model.v20180120.CreateRtmpDeviceResponse; +import com.aliyuncs.linkvisual.model.v20180120.CreateRtmpDeviceResponse.Data; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateRtmpDeviceResponseUnmarshaller { + + public static CreateRtmpDeviceResponse unmarshall(CreateRtmpDeviceResponse createRtmpDeviceResponse, UnmarshallerContext _ctx) { + + createRtmpDeviceResponse.setRequestId(_ctx.stringValue("CreateRtmpDeviceResponse.RequestId")); + createRtmpDeviceResponse.setCode(_ctx.stringValue("CreateRtmpDeviceResponse.Code")); + createRtmpDeviceResponse.setErrorMessage(_ctx.stringValue("CreateRtmpDeviceResponse.ErrorMessage")); + createRtmpDeviceResponse.setSuccess(_ctx.booleanValue("CreateRtmpDeviceResponse.Success")); + + Data data = new Data(); + data.setDeviceName(_ctx.stringValue("CreateRtmpDeviceResponse.Data.DeviceName")); + data.setStreamName(_ctx.stringValue("CreateRtmpDeviceResponse.Data.StreamName")); + data.setIotId(_ctx.stringValue("CreateRtmpDeviceResponse.Data.IotId")); + createRtmpDeviceResponse.setData(data); + + return createRtmpDeviceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/DeleteRtmpDeviceResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/DeleteRtmpDeviceResponseUnmarshaller.java new file mode 100644 index 0000000000..31082791c8 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/DeleteRtmpDeviceResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.transform.v20180120; + +import com.aliyuncs.linkvisual.model.v20180120.DeleteRtmpDeviceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteRtmpDeviceResponseUnmarshaller { + + public static DeleteRtmpDeviceResponse unmarshall(DeleteRtmpDeviceResponse deleteRtmpDeviceResponse, UnmarshallerContext _ctx) { + + deleteRtmpDeviceResponse.setRequestId(_ctx.stringValue("DeleteRtmpDeviceResponse.RequestId")); + deleteRtmpDeviceResponse.setCode(_ctx.stringValue("DeleteRtmpDeviceResponse.Code")); + deleteRtmpDeviceResponse.setErrorMessage(_ctx.stringValue("DeleteRtmpDeviceResponse.ErrorMessage")); + deleteRtmpDeviceResponse.setSuccess(_ctx.booleanValue("DeleteRtmpDeviceResponse.Success")); + + return deleteRtmpDeviceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/DeleteRtmpKeyResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/DeleteRtmpKeyResponseUnmarshaller.java new file mode 100644 index 0000000000..187d81d4be --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/DeleteRtmpKeyResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.transform.v20180120; + +import com.aliyuncs.linkvisual.model.v20180120.DeleteRtmpKeyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteRtmpKeyResponseUnmarshaller { + + public static DeleteRtmpKeyResponse unmarshall(DeleteRtmpKeyResponse deleteRtmpKeyResponse, UnmarshallerContext _ctx) { + + deleteRtmpKeyResponse.setRequestId(_ctx.stringValue("DeleteRtmpKeyResponse.RequestId")); + deleteRtmpKeyResponse.setCode(_ctx.stringValue("DeleteRtmpKeyResponse.Code")); + deleteRtmpKeyResponse.setErrorMessage(_ctx.stringValue("DeleteRtmpKeyResponse.ErrorMessage")); + deleteRtmpKeyResponse.setSuccess(_ctx.booleanValue("DeleteRtmpKeyResponse.Success")); + + return deleteRtmpKeyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryRtmpKeyResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryRtmpKeyResponseUnmarshaller.java new file mode 100644 index 0000000000..f9087cae22 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryRtmpKeyResponseUnmarshaller.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.transform.v20180120; + +import com.aliyuncs.linkvisual.model.v20180120.QueryRtmpKeyResponse; +import com.aliyuncs.linkvisual.model.v20180120.QueryRtmpKeyResponse.Data; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class QueryRtmpKeyResponseUnmarshaller { + + public static QueryRtmpKeyResponse unmarshall(QueryRtmpKeyResponse queryRtmpKeyResponse, UnmarshallerContext _ctx) { + + queryRtmpKeyResponse.setRequestId(_ctx.stringValue("QueryRtmpKeyResponse.RequestId")); + queryRtmpKeyResponse.setCode(_ctx.stringValue("QueryRtmpKeyResponse.Code")); + queryRtmpKeyResponse.setErrorMessage(_ctx.stringValue("QueryRtmpKeyResponse.ErrorMessage")); + queryRtmpKeyResponse.setSuccess(_ctx.booleanValue("QueryRtmpKeyResponse.Success")); + + Data data = new Data(); + data.setPullAuthKey(_ctx.stringValue("QueryRtmpKeyResponse.Data.PullAuthKey")); + data.setPullKeyExpireTime(_ctx.integerValue("QueryRtmpKeyResponse.Data.PullKeyExpireTime")); + data.setPushKeyExpireTime(_ctx.integerValue("QueryRtmpKeyResponse.Data.PushKeyExpireTime")); + data.setStreamName(_ctx.stringValue("QueryRtmpKeyResponse.Data.StreamName")); + data.setPushAuthKey(_ctx.stringValue("QueryRtmpKeyResponse.Data.PushAuthKey")); + queryRtmpKeyResponse.setData(data); + + return queryRtmpKeyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryVisionDeviceInfoResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryVisionDeviceInfoResponseUnmarshaller.java new file mode 100644 index 0000000000..0b588d6cfc --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryVisionDeviceInfoResponseUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.transform.v20180120; + +import com.aliyuncs.linkvisual.model.v20180120.QueryVisionDeviceInfoResponse; +import com.aliyuncs.linkvisual.model.v20180120.QueryVisionDeviceInfoResponse.Data; +import com.aliyuncs.linkvisual.model.v20180120.QueryVisionDeviceInfoResponse.Data.GbDeviceInfo; +import com.aliyuncs.linkvisual.model.v20180120.QueryVisionDeviceInfoResponse.Data.RtmpDeviceInfo; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class QueryVisionDeviceInfoResponseUnmarshaller { + + public static QueryVisionDeviceInfoResponse unmarshall(QueryVisionDeviceInfoResponse queryVisionDeviceInfoResponse, UnmarshallerContext _ctx) { + + queryVisionDeviceInfoResponse.setRequestId(_ctx.stringValue("QueryVisionDeviceInfoResponse.RequestId")); + queryVisionDeviceInfoResponse.setCode(_ctx.stringValue("QueryVisionDeviceInfoResponse.Code")); + queryVisionDeviceInfoResponse.setErrorMessage(_ctx.stringValue("QueryVisionDeviceInfoResponse.ErrorMessage")); + queryVisionDeviceInfoResponse.setSuccess(_ctx.booleanValue("QueryVisionDeviceInfoResponse.Success")); + + Data data = new Data(); + data.setDescription(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.Description")); + data.setDeviceType(_ctx.integerValue("QueryVisionDeviceInfoResponse.Data.DeviceType")); + + GbDeviceInfo gbDeviceInfo = new GbDeviceInfo(); + gbDeviceInfo.setGbId(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.GbDeviceInfo.GbId")); + gbDeviceInfo.setPassword(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.GbDeviceInfo.Password")); + gbDeviceInfo.setNickName(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.GbDeviceInfo.NickName")); + gbDeviceInfo.setSubProductKey(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.GbDeviceInfo.SubProductKey")); + gbDeviceInfo.setDeviceProtocol(_ctx.integerValue("QueryVisionDeviceInfoResponse.Data.GbDeviceInfo.DeviceProtocol")); + gbDeviceInfo.setNetProtocol(_ctx.integerValue("QueryVisionDeviceInfoResponse.Data.GbDeviceInfo.NetProtocol")); + data.setGbDeviceInfo(gbDeviceInfo); + + RtmpDeviceInfo rtmpDeviceInfo = new RtmpDeviceInfo(); + rtmpDeviceInfo.setStreamStatus(_ctx.integerValue("QueryVisionDeviceInfoResponse.Data.RtmpDeviceInfo.StreamStatus")); + rtmpDeviceInfo.setPushKeyExpireTime(_ctx.integerValue("QueryVisionDeviceInfoResponse.Data.RtmpDeviceInfo.PushKeyExpireTime")); + rtmpDeviceInfo.setStreamName(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.RtmpDeviceInfo.StreamName")); + rtmpDeviceInfo.setPushAuthKey(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.RtmpDeviceInfo.PushAuthKey")); + rtmpDeviceInfo.setPullAuthKey(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.RtmpDeviceInfo.PullAuthKey")); + rtmpDeviceInfo.setPullKeyExpireTime(_ctx.integerValue("QueryVisionDeviceInfoResponse.Data.RtmpDeviceInfo.PullKeyExpireTime")); + rtmpDeviceInfo.setPushUrlSample(_ctx.stringValue("QueryVisionDeviceInfoResponse.Data.RtmpDeviceInfo.PushUrlSample")); + data.setRtmpDeviceInfo(rtmpDeviceInfo); + queryVisionDeviceInfoResponse.setData(data); + + return queryVisionDeviceInfoResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/UpdateRtmpKeyResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/UpdateRtmpKeyResponseUnmarshaller.java new file mode 100644 index 0000000000..e823ffcf01 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/UpdateRtmpKeyResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.linkvisual.transform.v20180120; + +import com.aliyuncs.linkvisual.model.v20180120.UpdateRtmpKeyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UpdateRtmpKeyResponseUnmarshaller { + + public static UpdateRtmpKeyResponse unmarshall(UpdateRtmpKeyResponse updateRtmpKeyResponse, UnmarshallerContext _ctx) { + + updateRtmpKeyResponse.setRequestId(_ctx.stringValue("UpdateRtmpKeyResponse.RequestId")); + updateRtmpKeyResponse.setCode(_ctx.stringValue("UpdateRtmpKeyResponse.Code")); + updateRtmpKeyResponse.setErrorMessage(_ctx.stringValue("UpdateRtmpKeyResponse.ErrorMessage")); + updateRtmpKeyResponse.setSuccess(_ctx.booleanValue("UpdateRtmpKeyResponse.Success")); + + return updateRtmpKeyResponse; + } +} \ No newline at end of file