Class TeamMemberImpl
java.lang.Object
com.mewna.catnip.entity.impl.misc.TeamMemberImpl
- All Implemented Interfaces:
Entity
,TeamMember
,RequiresCatnip
- Since:
- 06/24/19.
- Author:
- Bowser65
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTeamMemberImpl
(Catnip catnip, long teamIdAsLong, int membershipState, User user, List<String> permissions) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
boolean
int
hashCode()
int
membershipState
(int membershipState) permissions
(List<String> permissions) long
teamIdAsLong
(long teamIdAsLong) toString()
user()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.misc.TeamMember
teamId
-
Constructor Details
-
TeamMemberImpl
public TeamMemberImpl() -
TeamMemberImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
teamIdAsLong
public long teamIdAsLong()- Specified by:
teamIdAsLong
in interfaceTeamMember
- Returns:
- The ID of the parent team they are member of, as a long.
-
membershipState
public int membershipState()- Specified by:
membershipState
in interfaceTeamMember
- Returns:
- The membership state. Either 1 for pending, 2 for accepted.
-
user
- Specified by:
user
in interfaceTeamMember
- Returns:
- The user.
-
permissions
- Specified by:
permissions
in interfaceTeamMember
- Returns:
- The permissions of the member. Will always be ["*"] as teams doesn't have permissions yet.
-
teamIdAsLong
- Returns:
this
.
-
membershipState
- Returns:
this
.
-
user
- Returns:
this
.
-
permissions
- Returns:
this
.
-