Class MentionedInfo
-
- All Implemented Interfaces:
public class MentionedInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
MentionedInfo.MentionedType
-
Field Summary
Fields Modifier and Type Field Description public MentionedInfo.MentionedType
type
public String
mentionedContent
public 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.MentionedType
getType()
Get the @ type (mentioning some or all members). void
setType(MentionedInfo.MentionedType type)
Sets the @ type (mention some or all members). String
getMentionedContent()
Specifies the content displayed in the notification bar when a push notification or background @ message is received. void
setMentionedContent(String content)
Sets the content displayed in the notification bar when a push notification or background @ message is received. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
List<String>
getMentionedUserIdList()
Retrieves the list of users mentioned in @ messages. void
setMentionedUserIdList(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.
-
-
-
-