Package im.getsocial.sdk.communities
Class Mention
- java.lang.Object
-
- im.getsocial.sdk.communities.Mention
-
public class Mention extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Mention.Type
-
Constructor Summary
Constructors Constructor Description Mention(int startIndex, int endIndex, java.lang.String userId, Mention.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEndIndex()
End position of the mention in the text.int
getStartIndex()
Start position of the mention in the text.Mention.Type
getType()
Type of the mention.java.lang.String
getUserId()
Id of the mentioned user.
-
-
-
Constructor Detail
-
Mention
public Mention(int startIndex, int endIndex, java.lang.String userId, Mention.Type type)
-
-
Method Detail
-
getStartIndex
public int getStartIndex()
Start position of the mention in the text.
-
getEndIndex
public int getEndIndex()
End position of the mention in the text.
-
getType
public Mention.Type getType()
Type of the mention.- Returns:
- APP or USER.
-
getUserId
public java.lang.String getUserId()
Id of the mentioned user.
-
-