NIMSDK-AOS
10.5.0
basesdk
src
com
netease
nimlib
sdk
friend
constant
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
}
com.netease.nimlib.sdk.friend.constant.FriendRelationship
好友关系
Definition:
FriendRelationship.java:8
com.netease.nimlib.sdk.friend.constant.FriendRelationship.getValue
int getValue()
Definition:
FriendRelationship.java:27
com.netease
com
com.netease.nimlib.sdk.friend.constant.FriendRelationship.RelationshipOfValue
static FriendRelationship RelationshipOfValue(int status)
Definition:
FriendRelationship.java:18
com.netease.nimlib.sdk.friend.constant.FriendRelationship.FriendRelationship
FriendRelationship(int value)
Definition:
FriendRelationship.java:14
com.netease.nimlib.sdk.friend.constant.FriendRelationship.NOT_FRIEND
NOT_FRIEND
Definition:
FriendRelationship.java:9
com.netease.nimlib.sdk.friend.constant.FriendRelationship.NORMAL_FRIEND
NORMAL_FRIEND
Definition:
FriendRelationship.java:10
com.netease.nimlib
生成于 2024年 十月 15日 星期二 18:40:25 , 为 NIMSDK-AOS使用
1.8.13