NIMSDK-AOS  9.16.0
FriendSource.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.friend.constant;
2 
3 import com.netease.nimlib.biz.constant.IFriendService;
4 
8 public enum FriendSource {
9  DEFAULT(IFriendService.Source.DEFAULT);
10 
11  private byte value;
12 
13  FriendSource(byte value) {
14  this.value = value;
15  }
16 
17  public static FriendSource friendSourceOfValue(int status) {
18  byte s = (byte) status;
19  for (FriendSource e : values()) {
20  if (e.getValue() == s) {
21  return e;
22  }
23  }
24  return null;
25  }
26 
27  public byte getValue() {
28  return value;
29  }
30 }
static FriendSource friendSourceOfValue(int status)