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

io.github.lunasaw.gb28181.common.entity.notify.DeviceOtherUpdateNotify Maven / Gradle / Ivy

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

import java.util.List;

import javax.xml.bind.annotation.*;

import org.assertj.core.util.Lists;

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

/**
 * 
 * 
 * Catalog
 * 422214
 * device_001
 * 1
 * 
 * 
 * 33010602011187000001
 * Event
 * 
 * 
 * 
 *
 * @author luna
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement(name = "Notify")
@XmlAccessorType(XmlAccessType.FIELD)
public class DeviceOtherUpdateNotify extends DeviceBase {

    @XmlElement(name = "SumNum")
    private int sumNum;

    @XmlElement(name = "Item")
    @XmlElementWrapper(name = "DeviceList")
    private List deviceItemList;

    @Getter
    @Setter
    @XmlRootElement(name = "Item")
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class OtherItem {

        @XmlElement(name = "DeviceID")
        private String deviceId;

        @XmlElement(name = "Event")
        private String event;
    }

    public DeviceOtherUpdateNotify(String cmdType, String sn, String deviceId) {
        super(cmdType, sn, deviceId);
    }

    public static void main(String[] args) {
        DeviceOtherUpdateNotify deviceUpdateNotify = new DeviceOtherUpdateNotify();

        deviceUpdateNotify.setDeviceItemList(Lists.newArrayList());
        deviceUpdateNotify.setSumNum(1);
        System.out.println(deviceUpdateNotify);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy