NIMSDK-AOS  9.16.0
DocTransState.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.document.model;
2 
7 public enum DocTransState {
9  Ongoing(2),
10  Timeout(3),
12  Failed(5);
13 
14  private int value;
15 
16  DocTransState(int value) {
17  this.value = value;
18  }
19 
20  public int getValue() {
21  return value;
22  }
23 
24  public static DocTransState typeOfValue(int value){
25  for(DocTransState e:values()){
26  if(e.getValue() == value) {
27  return e;
28  }
29  }
30  return Failed;
31  }
32 }