com.gnss.common.constants.CommandSendResultEnum Maven / Gradle / Ivy
The newest version!
package com.gnss.common.constants;
import lombok.Getter;
/**
* Description: 指令发送结果
* Company: www.gps-pro.cn
*
* @author huangguangbin
* @version 1.0.1
* @date 2018/2/3
*/
@Getter
public enum CommandSendResultEnum {
/**
* 成功
*/
SUCCESS(0, "成功"),
/**
* 失败
*/
FAILED(1, "失败"),
/**
* 终端不在线
*/
TERMINAL_OFFLINE(2, "终端不在线"),
/**
* 指令超时
*/
TIMEOUT(3, "指令超时"),
/**
* 指令不支持
*/
NOT_SUPPORT(4, "指令不支持"),
/**
* 内部服务错误
*/
INTERNAL_SERVER_ERROR(5, "内部服务错误");
private Integer code;
private String desc;
CommandSendResultEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
}