Package io.rong.imlib.model
Class MentionedInfo
-
- All Implemented Interfaces:
public class MentionedInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumMentionedInfo.MentionedType
-
Field Summary
Fields Modifier and Type Field Description public MentionedInfo.MentionedTypetypepublic StringmentionedContentpublic final static Creator<MentionedInfo>CREATOR
-
Constructor Summary
Constructors Constructor Description MentionedInfo()MentionedInfo(Parcel in)MentionedInfo(MentionedInfo.MentionedType type, List<String> userIdList, String mentionedContent)
-
Method Summary
Modifier and Type Method Description MentionedInfo.MentionedTypegetType()获取 @ 类型( @ 部分人或者 @ 所有人)。MentionedType。 voidsetType(MentionedInfo.MentionedType type)设置 @ 类型( @ 部分人或者 @ 所有人)。MentionedType。 StringgetMentionedContent()获取推送或者后台收到 @ 消息时, 通知栏显示的内容。如果是 NULL, 则按默认格式显示(有人 @ 你)。 voidsetMentionedContent(String content)设置推送或者后台收到 @ 消息时, 通知栏显示的内容。如果是 NULL, 则按默认格式显示(有人 @ 你)。 intdescribeContents()voidwriteToParcel(Parcel dest, int flags)List<String>getMentionedUserIdList()获取 @ 消息用户列表。如果是 @部分人,userIdList 不能为空;如果是@所有人,userIdList 传 NULL 即可。voidsetMentionedUserIdList(List<String> userList)设置 @ 消息用户列表。如果是 @ 部分人,userIdList 不能为空;如果是 @ 所有人,userIdList 传 NULL 即可。 -
-
Constructor Detail
-
MentionedInfo
MentionedInfo()
-
MentionedInfo
MentionedInfo(Parcel in)
-
MentionedInfo
MentionedInfo(MentionedInfo.MentionedType type, List<String> userIdList, String mentionedContent)
-
-
Method Detail
-
getType
MentionedInfo.MentionedType getType()
获取 @ 类型( @ 部分人或者 @ 所有人)。MentionedType。
- Returns:
@类型(@部分人或者@所有人)。MentionedType。
-
setType
void setType(MentionedInfo.MentionedType type)
设置 @ 类型( @ 部分人或者 @ 所有人)。MentionedType。
- Parameters:
type-@类型(@部分人或者@所有人)。MentionedType。
-
getMentionedContent
String getMentionedContent()
获取推送或者后台收到 @ 消息时, 通知栏显示的内容。如果是 NULL, 则按默认格式显示(有人 @ 你)。
- Returns:
推送或者后台收到 @ 消息时, 通知栏显示的内容。如果是 NULL, 则按默认格式显示(有人 @ 你)。
-
setMentionedContent
void setMentionedContent(String content)
设置推送或者后台收到 @ 消息时, 通知栏显示的内容。如果是 NULL, 则按默认格式显示(有人 @ 你)。
- Parameters:
content- 推送或者后台收到 @ 消息时, 通知栏显示的内容。如果是 NULL, 则按默认格式显示(有人 @ 你)。
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
getMentionedUserIdList
List<String> getMentionedUserIdList()
获取 @ 消息用户列表。如果是
@部分人,userIdList 不能为空;如果是@所有人,userIdList 传 NULL 即可。- Returns:
@消息用户列表。如果是@部分人,userIdList 不能为空;如果是@所有人,userIdList 传 NULL 即可。
-
setMentionedUserIdList
void setMentionedUserIdList(List<String> userList)
设置 @ 消息用户列表。如果是 @ 部分人,userIdList 不能为空;如果是 @ 所有人,userIdList 传 NULL 即可。
- Parameters:
userList-@消息用户列表。如果是@部分人,userIdList 不能为空;如果是@所有人,userIdList 传 NULL 即可。
-
-
-
-