You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
518 B
30 lines
518 B
|
3 years ago
|
package com.bx.imcommon.enums;
|
||
|
3 years ago
|
|
||
|
|
|
||
|
3 years ago
|
public enum IMSendCode {
|
||
|
3 years ago
|
|
||
|
|
SUCCESS(0,"发送成功"),
|
||
|
3 years ago
|
NOT_ONLINE(1,"对方当前不在线"),
|
||
|
|
NOT_FIND_CHANNEL(2,"未找到对方的channel"),
|
||
|
|
UNKONW_ERROR(9999,"未知异常");
|
||
|
3 years ago
|
|
||
|
|
private int code;
|
||
|
3 years ago
|
private String desc;
|
||
|
3 years ago
|
|
||
|
|
// 构造方法
|
||
|
3 years ago
|
IMSendCode(int code, String desc) {
|
||
|
3 years ago
|
this.code = code;
|
||
|
3 years ago
|
this.desc = desc;
|
||
|
3 years ago
|
}
|
||
|
3 years ago
|
|
||
|
|
public String description() {
|
||
|
|
return desc;
|
||
|
3 years ago
|
}
|
||
|
|
|
||
|
3 years ago
|
|
||
|
|
public Integer code(){
|
||
|
|
return this.code;
|
||
|
3 years ago
|
}
|
||
|
|
|
||
|
|
}
|