com.dahuatech.icc.event.enums.RoleBusinessEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-event Show documentation
Show all versions of java-sdk-event Show documentation
Dahua ICC Open API SDK for Java
package com.dahuatech.icc.event.enums;
import java.util.ArrayList;
import java.util.List;
/**
* 组织业务事件推送
* 参考 文档-附录-事件列表-基础事件-角色实时消息
*/
public enum RoleBusinessEnum {
role_add("role.add","角色新增"),
role_update("role.update","角色更新"),
role_delete("role.delete","角色删除"),
;
public String code;
public String msg;
RoleBusinessEnum(String code, String msg){
this.code = code;
this.msg = msg;
}
public static List getBusinessTypes(){
List list = new ArrayList<>();
for(RoleBusinessEnum item : RoleBusinessEnum.values()){
list.add(item.code);
}
return list;
}
}