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()Get the @ type (mentioning some or all members). voidsetType(MentionedInfo.MentionedType type)Sets the @ type (mention some or all members). StringgetMentionedContent()Specifies the content displayed in the notification bar when a push notification or background @ message is received. voidsetMentionedContent(String content)Sets the content displayed in the notification bar when a push notification or background @ message is received. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)List<String>getMentionedUserIdList()Retrieves the list of users mentioned in @ messages. voidsetMentionedUserIdList(List<String> userList)Sets the user list for @mentions. -
-
Constructor Detail
-
MentionedInfo
MentionedInfo()
-
MentionedInfo
MentionedInfo(Parcel in)
-
MentionedInfo
MentionedInfo(MentionedInfo.MentionedType type, List<String> userIdList, String mentionedContent)
-
-
Method Detail
-
getType
MentionedInfo.MentionedType getType()
Get the @ type (mentioning some or all members). MentionedType.
- Returns:
@type (mentioning some or all members). MentionedType.
-
setType
void setType(MentionedInfo.MentionedType type)
Sets the @ type (mention some or all members). MentionedType.
- Parameters:
type- The @ type (mention some or all members).
-
getMentionedContent
String getMentionedContent()
Specifies the content displayed in the notification bar when a push notification or background @ message is received. If NULL, the default format will be displayed (e.g., Someone mentioned you).
- Returns:
The content displayed in the notification bar when a push notification or background @ message is received. If NULL, the default format will be displayed (e.g., Someone mentioned you).
-
setMentionedContent
void setMentionedContent(String content)
Sets the content displayed in the notification bar when a push notification or background @ message is received. If NULL, the default format is displayed (Someone @ you).
- Parameters:
content- The content displayed in the notification bar when a push notification or background @ message is received.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
getMentionedUserIdList
List<String> getMentionedUserIdList()
Retrieves the list of users mentioned in @ messages. If
@is used for specific users, userIdList cannot be empty; if@is used for everyone, userIdList should be NULL.- Returns:
The list of users mentioned in @ messages. If
@is used for specific users, userIdList cannot be empty; if@is used for everyone, userIdList should be NULL.
-
setMentionedUserIdList
void setMentionedUserIdList(List<String> userList)
Sets the user list for @mentions. If mentioning specific users, userIdList cannot be empty; if mentioning all users, pass NULL for userIdList.
- Parameters:
userList- The user list for @mentions.
-
-
-
-