public class GroupClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupClient.createGroupMessage |
static class |
GroupClient.GetGroupMembersMessage |
static class |
GroupClient.getPlayerByNameMessage |
static class |
GroupClient.GroupEventType |
static class |
GroupClient.GroupInfo |
static class |
GroupClient.groupInviteByNameMessage |
| Constructor and Description |
|---|
GroupClient() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createGroup(java.util.ArrayList<OID> groupMembers) |
static GroupClient.GroupInfo |
GetGroupMemberOIDs(OID subject)
Sends an RPC message to the GroupPlugin and returns a list of group member OIDs.
|
static java.util.LinkedList<OID> |
GetGroupMembers(OID oid) |
static OID |
getPlayerByName(java.lang.String name)
Sends the getPlayerByNameMessage which will attempt to get a players oid from their name.
|
static void |
groupInviteByName(OID oid,
java.lang.String name)
Sends the groupInviteByNameMessage which will attempt to invite the named member to the group.
|
static void |
removeMember(OID oid)
Sends an RPC message to the GroupPlugin to remove member from group.
|
static void |
removeMember(OID oid,
OID kickerOid)
Sends an RPC message to the GroupPlugin to remove member from group.
|
static void |
removeMember(OID oid,
OID kickerOid,
OID groupOid)
Sends an RPC message to the GroupPlugin to remove member from group.
|
static void |
SendGroupEventMessage(GroupClient.GroupEventType eventType,
AgisGroup group,
OID subjectOid)
SendGroupEventMessage is used to send messages to each group member about specific group releated events
|
public static final java.lang.String EXTMSG_GROUP_UPDATE
public static final java.lang.String EXTMSG_GROUP_PROPERTY_UPDATE
public static final java.lang.String EXTMSG_GROUP_INVITE_REQUEST
public static final java.lang.String EXTMSG_GROUP_CANCEL_INVITE_REQUEST
public static final java.lang.String EXTMSG_GROUP_INVITE_DECLINED
public static final MessageType MSG_TYPE_GROUP_INVITE
public static final MessageType MSG_TYPE_GROUP_INVITE_RESPONSE
public static final MessageType MSG_TYPE_GROUP_LEAVE
public static final MessageType MSG_TYPE_GROUP_REMOVE_MEMBER
public static final MessageType MSG_TYPE_GROUP_CHAT
public static final MessageType MSG_TYPE_REQUEST_GROUP_INFO
public static final MessageType MSG_TYPE_GROUP_INFO_RESPONSE
public static final MessageType MSG_TYPE_GROUP_SET_ALLOWED_SPEAKER
public static final MessageType MSG_TYPE_GROUP_MUTE_VOICE_CHAT
public static final MessageType MSG_TYPE_GROUP_VOICE_CHAT_STATUS
public static final MessageType MSG_TYPE_GROUP_PROMOTE_LEADER
public static final MessageType MSG_TYPE_GROUP_INVITE_BY_NAME
public static final MessageType MSG_TYPE_GET_PLAYER_BY_NAME
public static final MessageType MSG_TYPE_CREATE_GROUP
public static final MessageType MSG_TYPE_GET_FRIENDS
public static final MessageType MSG_TYPE_ADD_FRIEND
public static final MessageType MSG_TYPE_SOCIAL_ADD_FRIEND
public static final MessageType MSG_TYPE_SOCIAL_DEL_FRIEND
public static final MessageType MSG_TYPE_SOCIAL_GET_FRIENDS
public static final MessageType MSG_TYPE_GET_GROUP_MEMBERS
public static void SendGroupEventMessage(GroupClient.GroupEventType eventType, AgisGroup group, OID subjectOid)
eventType - Type of event to send to the group membersgroup - Group object for which the event pertainssubjectOid - Oid of the player/object that the message is aboutpublic static GroupClient.GroupInfo GetGroupMemberOIDs(OID subject)
subject - Oid of the player/object assoicated with the group you want info aboutpublic static void groupInviteByName(OID oid, java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic static OID getPlayerByName(java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic static void removeMember(OID oid)
oid - public static void removeMember(OID oid, OID kickerOid)
oid - kickerOid - public static void removeMember(OID oid, OID kickerOid, OID groupOid)
oid - kickerOid - groupOid - public static void createGroup(java.util.ArrayList<OID> groupMembers)
oid -