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