All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.lunasaw.gb28181.common.entity.response.DeviceResponse Maven / Gradle / Ivy

The newest version!
package io.github.lunasaw.gb28181.common.entity.response;

import java.util.List;

import javax.xml.bind.annotation.*;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.assertj.core.util.Lists;

import io.github.lunasaw.gb28181.common.entity.base.DeviceBase;
import lombok.Getter;
import lombok.Setter;

/**
 * 
 * 
 *     Catalog
 *     ${SN}
 *     ${DEVICE_ID}
 *     1
 *     
 *         
 *             33010602011187000002
 *             Camera
 *             海康
 *             Model
 *             Owner
 *             CivilCode
 *             Block
 *             
上海市五角场合生汇
* 0 * ${DEVICE_ID} * 0 * 1 * CertNum1 * 0 * 400 * 2010-11-11T19:46:17 * 0 * 172.19.128.50 * 5060 * Password1 * 1 * Status1 * 171.4 * 34.2 *
*
*
* @author luna */ @Getter @Setter @AllArgsConstructor @NoArgsConstructor @XmlRootElement(name = "Response") @XmlAccessorType(XmlAccessType.FIELD) public class DeviceResponse extends DeviceBase { @XmlElement(name = "SumNum") private int sumNum; @XmlElement(name = "Item") @XmlElementWrapper(name = "DeviceList") private List deviceItemList; public DeviceResponse(String cmdType, String sn, String deviceId) { super(cmdType, sn, deviceId); } public static void main(String[] args) { DeviceResponse deviceResponse = new DeviceResponse(); DeviceItem deviceItem = DeviceItem.getInstanceExample("33010602011187000001"); deviceResponse.setDeviceItemList(Lists.newArrayList(deviceItem, deviceItem)); System.out.println(deviceResponse); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy