NIMSDK-AOS  10.5.0
MsgDirectionEnum.java
浏览该文件的文档.
1 
2 package com.netease.nimlib.sdk.msg.constant;
3 
7 public enum MsgDirectionEnum {
11  Out(0),
15  In(1);
16 
17  private int value;
18 
19  MsgDirectionEnum(int value) {
20  this.value = value;
21  }
22 
23  public int getValue() {
24  return value;
25  }
26 
27  public static MsgDirectionEnum directionOfValue(int value) {
28  for (MsgDirectionEnum direction : values()){
29  if (direction.getValue() == value) {
30  return direction;
31  }
32  }
33  return Out;
34  }
35 }
static MsgDirectionEnum directionOfValue(int value)