public class MentionMessageSegment extends Object implements MessageSegment
| Constructor and Description |
|---|
MentionMessageSegment()
Create a Mention Segment with no user set
|
MentionMessageSegment(String userId)
Create a Mention segment with the user id set
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getType()
The segments type
|
String |
getUserId()
Get the mentioned user's ID
|
int |
hashCode() |
void |
setUserId(String userId)
Set the mentioned user's ID
|
String |
toString() |
public MentionMessageSegment()
public MentionMessageSegment(String userId)
userId - The mentioned user's idpublic String getUserId()
public void setUserId(String userId)
userId - user's IDpublic String getType()
getType in interface MessageSegment"Mention"Copyright © 2016–2019. All rights reserved.