Package org.vrspace.server.obj
Class GroupMember
java.lang.Object
org.vrspace.server.obj.Entity
org.vrspace.server.obj.GroupMember
Represents a membership of a user in a group
- Author:
- joe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccepted()
Set pending invite and request to null, update timestampprotected boolean
boolean
@NonNull Client
@NonNull UserGroup
getGroup()
Time stamp of last membership update, be it invite, request, or joining the groupPending invitation, if anyPending request to join, if anyint
hashCode()
invite()
Set pendingInvite to random UUID, update the timestamp.boolean
joined()
request()
Set pendingRequest to random UUID, update the timestampvoid
void
void
setLastUpdate
(Instant lastUpdate) Time stamp of last membership update, be it invite, request, or joining the groupvoid
setPendingInvite
(String pendingInvite) Pending invitation, if anyvoid
setPendingRequest
(String pendingRequest) Pending request to join, if anytoString()
Methods inherited from class org.vrspace.server.obj.Entity
dispose, getId, getObjectId, setId
-
Constructor Details
-
GroupMember
public GroupMember() -
GroupMember
-
-
Method Details
-
joined
public boolean joined() -
invite
Set pendingInvite to random UUID, update the timestamp.- Returns:
- this
-
request
Set pendingRequest to random UUID, update the timestamp- Returns:
- this
-
accepted
Set pending invite and request to null, update timestamp- Returns:
- this
-
getGroup
-
getClient
-
getPendingInvite
Pending invitation, if any -
getPendingRequest
Pending request to join, if any -
getLastUpdate
Time stamp of last membership update, be it invite, request, or joining the group -
setGroup
-
setClient
-
setPendingInvite
Pending invitation, if any -
setPendingRequest
Pending request to join, if any -
setLastUpdate
Time stamp of last membership update, be it invite, request, or joining the group -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-