Skip to content

Commit

Permalink
新增按时间下载本地录像接口.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 16, 2023
1 parent eb546ec commit ced5c69
Show file tree
Hide file tree
Showing 7 changed files with 278 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-linkvisual/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-11-16 Version: 1.5.17
- 新增按时间下载本地录像接口.

2023-10-30 Version: 1.5.16
- 新增按时间下载云存录像接口.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-linkvisual/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-linkvisual</artifactId>
<packaging>jar</packaging>
<version>1.5.16</version>
<version>1.5.17</version>
<name>aliyun-java-sdk-linkvisual</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/*
* 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 CreateLocalRecordDownloadByTimeJobRequest extends RpcAcsRequest<CreateLocalRecordDownloadByTimeJobResponse> {


private Float speed;

private String iotId;

private String iotInstanceId;

private Integer endTime;

private Integer beginTime;

private String productKey;

private String deviceName;
public CreateLocalRecordDownloadByTimeJobRequest() {
super("Linkvisual", "2018-01-20", "CreateLocalRecordDownloadByTimeJob", "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 Float getSpeed() {
return this.speed;
}

public void setSpeed(Float speed) {
this.speed = speed;
if(speed != null){
putQueryParameter("Speed", speed.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 Integer getEndTime() {
return this.endTime;
}

public void setEndTime(Integer endTime) {
this.endTime = endTime;
if(endTime != null){
putQueryParameter("EndTime", endTime.toString());
}
}

public Integer getBeginTime() {
return this.beginTime;
}

public void setBeginTime(Integer beginTime) {
this.beginTime = beginTime;
if(beginTime != null){
putQueryParameter("BeginTime", beginTime.toString());
}
}

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<CreateLocalRecordDownloadByTimeJobResponse> getResponseClass() {
return CreateLocalRecordDownloadByTimeJobResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* 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.CreateLocalRecordDownloadByTimeJobResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class CreateLocalRecordDownloadByTimeJobResponse 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 jobId;

public String getJobId() {
return this.jobId;
}

public void setJobId(String jobId) {
this.jobId = jobId;
}
}

@Override
public CreateLocalRecordDownloadByTimeJobResponse getInstance(UnmarshallerContext context) {
return CreateLocalRecordDownloadByTimeJobResponseUnmarshaller.unmarshall(this, context);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ public static class ListItem {

private String endTime;

private Integer eventType;

private Integer recordType;

private Integer streamType;
Expand Down Expand Up @@ -141,6 +143,14 @@ public void setEndTime(String endTime) {
this.endTime = endTime;
}

public Integer getEventType() {
return this.eventType;
}

public void setEventType(Integer eventType) {
this.eventType = eventType;
}

public Integer getRecordType() {
return this.recordType;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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.CreateLocalRecordDownloadByTimeJobResponse;
import com.aliyuncs.linkvisual.model.v20180120.CreateLocalRecordDownloadByTimeJobResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;


public class CreateLocalRecordDownloadByTimeJobResponseUnmarshaller {

public static CreateLocalRecordDownloadByTimeJobResponse unmarshall(CreateLocalRecordDownloadByTimeJobResponse createLocalRecordDownloadByTimeJobResponse, UnmarshallerContext _ctx) {

createLocalRecordDownloadByTimeJobResponse.setRequestId(_ctx.stringValue("CreateLocalRecordDownloadByTimeJobResponse.RequestId"));
createLocalRecordDownloadByTimeJobResponse.setCode(_ctx.stringValue("CreateLocalRecordDownloadByTimeJobResponse.Code"));
createLocalRecordDownloadByTimeJobResponse.setErrorMessage(_ctx.stringValue("CreateLocalRecordDownloadByTimeJobResponse.ErrorMessage"));
createLocalRecordDownloadByTimeJobResponse.setSuccess(_ctx.booleanValue("CreateLocalRecordDownloadByTimeJobResponse.Success"));

Data data = new Data();
data.setJobId(_ctx.stringValue("CreateLocalRecordDownloadByTimeJobResponse.Data.JobId"));
createLocalRecordDownloadByTimeJobResponse.setData(data);

return createLocalRecordDownloadByTimeJobResponse;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static QueryRecordResponse unmarshall(QueryRecordResponse queryRecordResp
ListItem listItem = new ListItem();
listItem.setSnapshotUrl(_ctx.stringValue("QueryRecordResponse.Data.List["+ i +"].SnapshotUrl"));
listItem.setEndTime(_ctx.stringValue("QueryRecordResponse.Data.List["+ i +"].EndTime"));
listItem.setEventType(_ctx.integerValue("QueryRecordResponse.Data.List["+ i +"].EventType"));
listItem.setRecordType(_ctx.integerValue("QueryRecordResponse.Data.List["+ i +"].RecordType"));
listItem.setStreamType(_ctx.integerValue("QueryRecordResponse.Data.List["+ i +"].StreamType"));
listItem.setBeginTime(_ctx.stringValue("QueryRecordResponse.Data.List["+ i +"].BeginTime"));
Expand Down

0 comments on commit ced5c69

Please sign in to comment.