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
Methods inherited from class org.vrspace.server.obj.Entity
dispose, getObjectId
-
Constructor Details
-
GroupMember
public GroupMember()
-
-
Method Details
-
joined
public boolean joined() -
invite
Set pendingInvite to random UUID, update the timestamp.- Parameters:
sponsor- the client that sends the invite- Returns:
- this
-
request
Set pendingRequest to random UUID, update the timestamp- Returns:
- this
-
accept
Accept the invitation to the group.- Returns:
- this
-
allow
Allow a member that asked to join into the group- Parameters:
sponsor- the client that accepted the membership request- Returns:
- this
-