Package io.manebot.user
Interface UserAssociation
-
- All Known Implementing Classes:
UserAssociation
public interface UserAssociation
-
-
Method Summary
Modifier and Type Method Description Platform
getPlatform()
Gets the platform connected with this association.java.lang.String
getPlatformId()
Gets the ID associated with this connection.default PlatformUser
getPlatformUser()
Gets the platform user instance associated with this user association.User
getUser()
Gets the user in this platform connection.void
remove()
Removes this User association fromm the Platform.
-
-
-
Method Detail
-
getPlatform
Platform getPlatform()
Gets the platform connected with this association.- Returns:
- Platform instance.
-
getUser
User getUser()
Gets the user in this platform connection.- Returns:
- User instance.
-
getPlatformId
java.lang.String getPlatformId()
Gets the ID associated with this connection.- Returns:
- ID.
-
getPlatformUser
default PlatformUser getPlatformUser()
Gets the platform user instance associated with this user association.- Returns:
- PlatformUser instance, null if no connection is present or the user cannot be found.
-
remove
void remove()
Removes this User association fromm the Platform.
-
-