NIMSDK-AOS  9.20.15
GetMessageDirectionEnum.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.msg.model;
2 
3 
5  /**
6  * 从时间戳大到时间戳小
7  */
8  FORWARD(0),
9 
10  /**
11  * 从时间戳小到时间戳大
12  */
14  ;
15 
16  private int value;
17 
19  this.value = value;
20  }
21 
22  public int getValue() {
23  return value;
24  }
25 
26  public static GetMessageDirectionEnum typeOfValue(int value) {
27  for (GetMessageDirectionEnum e : values()) {
28  if (e.getValue() == value) {
29  return e;
30  }
31  }
32  return FORWARD;
33  }
34 }