NIMSDK-AOS  9.16.0
AttachStatusEnum.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.msg.constant;
2 
6 public enum AttachStatusEnum {
7 
11  def(0),
20 
24  fail(3),
25 
29  cancel(4);
30 
31  private int value;
32 
33  AttachStatusEnum(int value) {
34  this.value = value;
35  }
36 
37  public static AttachStatusEnum statusOfValue(int status) {
38  for (AttachStatusEnum e : values()) {
39  if (e.getValue() == status) {
40  return e;
41  }
42  }
43  return def;
44  }
45 
46  public int getValue() {
47  return value;
48  }
49 }
static AttachStatusEnum statusOfValue(int status)