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

com.dahuatech.icc.multiinone.event.domain.EventVo Maven / Gradle / Ivy

There is a newer version: 1.0.13.7
Show newest version
package com.dahuatech.icc.multiinone.event.domain;


import com.dahuatech.icc.multiinone.utils.StringUtils;

import java.util.List;

/**
 * Created by 32514 on 2019-06-17.
 */
public class EventVo {
    private String category;//事件大类:"alarm"为报警
    private List authorities;//权限信息数组,不填就是所有

    private List grades;//报警等级列表,1>2>3>4>5 0或者不填等级代表全部等级

    private final Integer subscribeAll = 1;

    private Integer domainSubscribe = 2;

    private Integer scheme = 0;

    private Integer eventType = 0;

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public List getAuthorities() {
        return authorities;
    }

    public void setAuthorities(List authorities) {
        this.authorities = authorities;
    }

    public List getGrades() {
        return grades;
    }

    public void setGrades(List grades) {
        this.grades = grades;
    }

    public Integer getSubscribeAll() {
        return subscribeAll;
    }

    public void setSubscribeAll(Integer subscribeAll) {
//        this.subscribeAll = subscribeAll;
    }

    public Integer getDomainSubscribe() {
        return domainSubscribe;
    }

    public void setDomainSubscribe(Integer domainSubscribe) {
        this.domainSubscribe = domainSubscribe;
    }

    public Integer getScheme() {
        return scheme;
    }

    public void setScheme(Integer scheme) {
        this.scheme = scheme;
    }

    public Integer getEventType() {
        return eventType;
    }

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

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EventVo eventVo = (EventVo) o;
        if(StringUtils.isEmpty(category) || StringUtils.isEmpty(eventVo.getCategory())){
            return false;
        }
        return category.equals(eventVo.getCategory());
    }

    @Override
    public int hashCode() {
        return category.hashCode();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy