|  |  | 
 |  |  | package com.genersoft.iot.vmp.gb28181.bean; | 
 |  |  |  | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  |  | 
 |  |  | public class Device { | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  | 
 |  |  |    private String streamMode; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * wan地址_ip | 
 |  |  |     */ | 
 |  |  |    private String  ip; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * wan地址_port | 
 |  |  |     */ | 
 |  |  |    private int port; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * wan地址 | 
 |  |  |     */ | 
 |  |  |    private Host host; | 
 |  |  |    private String  hostAddress; | 
 |  |  |     | 
 |  |  |    /** | 
 |  |  |     * 在线 | 
 |  |  |     */ | 
 |  |  |    private int online; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 通道列表 | 
 |  |  |     */ | 
 |  |  | //   private Map<String,DeviceChannel> channelMap; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 注册时间 | 
 |  |  |     */ | 
 |  |  |    private String registerTime; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 心跳时间 | 
 |  |  |     */ | 
 |  |  |    private String keepaliveTime; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 通道个数 | 
 |  |  |     */ | 
 |  |  |    private int channelCount; | 
 |  |  |  | 
 |  |  |    private List<String> channelList; | 
 |  |  |    /** | 
 |  |  |     * 注册有效期 | 
 |  |  |     */ | 
 |  |  |    private int expires; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 创建时间 | 
 |  |  |     */ | 
 |  |  |    private String createTime; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 更新时间 | 
 |  |  |     */ | 
 |  |  |    private String updateTime; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 设备使用的媒体id, 默认为null | 
 |  |  |     */ | 
 |  |  |    private String mediaServerId; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 首次注册 | 
 |  |  |     */ | 
 |  |  |    private boolean firsRegister; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 字符集, 支持 utf-8 与 gb2312 | 
 |  |  |     */ | 
 |  |  |    private String charset ; | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 目录订阅周期,0为不订阅 | 
 |  |  |     */ | 
 |  |  |    private int subscribeCycleForCatalog ; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |    public String getDeviceId() { | 
 |  |  |       return deviceId; | 
 |  |  | 
 |  |  |       this.streamMode = streamMode; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public Host getHost() { | 
 |  |  |       return host; | 
 |  |  |    public String getIp() { | 
 |  |  |       return ip; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setHost(Host host) { | 
 |  |  |       this.host = host; | 
 |  |  |    public void setIp(String ip) { | 
 |  |  |       this.ip = ip; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public int getPort() { | 
 |  |  |       return port; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setPort(int port) { | 
 |  |  |       this.port = port; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public String getHostAddress() { | 
 |  |  |       return hostAddress; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setHostAddress(String hostAddress) { | 
 |  |  |       this.hostAddress = hostAddress; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public int getOnline() { | 
 |  |  | 
 |  |  |       this.channelCount = channelCount; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public List<String> getChannelList() { | 
 |  |  |       return channelList; | 
 |  |  |    public String getRegisterTime() { | 
 |  |  |       return registerTime; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setChannelList(List<String> channelList) { | 
 |  |  |       this.channelList = channelList; | 
 |  |  |    public void setRegisterTime(String registerTime) { | 
 |  |  |       this.registerTime = registerTime; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public String getKeepaliveTime() { | 
 |  |  |       return keepaliveTime; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setKeepaliveTime(String keepaliveTime) { | 
 |  |  |       this.keepaliveTime = keepaliveTime; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public int getExpires() { | 
 |  |  |       return expires; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setExpires(int expires) { | 
 |  |  |       this.expires = expires; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public String getCreateTime() { | 
 |  |  |       return createTime; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setCreateTime(String createTime) { | 
 |  |  |       this.createTime = createTime; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public String getUpdateTime() { | 
 |  |  |       return updateTime; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setUpdateTime(String updateTime) { | 
 |  |  |       this.updateTime = updateTime; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public String getMediaServerId() { | 
 |  |  |       return mediaServerId; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setMediaServerId(String mediaServerId) { | 
 |  |  |       this.mediaServerId = mediaServerId; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public boolean isFirsRegister() { | 
 |  |  |       return firsRegister; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setFirsRegister(boolean firsRegister) { | 
 |  |  |       this.firsRegister = firsRegister; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public String getCharset() { | 
 |  |  |       return charset; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setCharset(String charset) { | 
 |  |  |       this.charset = charset; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public int getSubscribeCycleForCatalog() { | 
 |  |  |       return subscribeCycleForCatalog; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setSubscribeCycleForCatalog(int subscribeCycleForCatalog) { | 
 |  |  |       this.subscribeCycleForCatalog = subscribeCycleForCatalog; | 
 |  |  |    } | 
 |  |  | } |