NIMSDK-AOS  10.9.80
V2NIMMessageSendingState.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.v2.message.enums;
2 
3 import androidx.annotation.NonNull;
4 
6  // 未知,如果消息不是从这个端发送的
8 
9  // 发送成功
11 
12  // 发送失败
14 
15  // 发送中
17  ;
18 
19  private final int value;
20 
22  this.value = value;
23  }
24 
25  @NonNull
26  public static V2NIMMessageSendingState typeOfValue(int value) {
27  for (V2NIMMessageSendingState type : values()) {
28  if (type.value == value) {
29  return type;
30  }
31  }
32 
33  return V2NIM_MESSAGE_SENDING_STATE_UNKNOWN;
34  }
35 
36  public int getValue() {
37  return value;
38  }
39 }