public class SteamFriends extends ClientMsgHandler
client| Constructor and Description |
|---|
SteamFriends() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFriend(SteamID steamID)
Sends a friend request to a user.
|
void |
addFriend(java.lang.String accountNameOrEmail)
Sends a friend request to a user.
|
void |
banChatMember(SteamID steamIdChat,
SteamID steamIdMember)
Bans the specified chat member from the given chat room.
|
void |
handleMsg(IPacketMsg packetMsg)
Handles a client message.
|
in.dragonbra.javasteam.types.AsyncJobSingle<IgnoreFriendCallback> |
ignoreFriend(SteamID steamID)
Ignores a friend on Steam.
|
in.dragonbra.javasteam.types.AsyncJobSingle<IgnoreFriendCallback> |
ignoreFriend(SteamID steamID,
boolean setIgnore)
Ignores or unignores a friend on Steam.
|
void |
inviteUserToChat(SteamID steamIdUser,
SteamID steamIdChat)
Invites a user to a chat room.
|
void |
joinChat(SteamID steamID)
Attempts to join a chat room.
|
void |
kickChatMember(SteamID steamIdChat,
SteamID steamIdMember)
Kicks the specified chat member from the given chat room.
|
void |
leaveChat(SteamID steamID)
Attempts to leave a chat room.
|
void |
removeFriend(SteamID steamID)
Removes a friend from your friends list.
|
JobID |
requestAliasHistory(java.util.List<SteamID> steamIDs)
Request the alias history of the accounts of the given steam ids.
|
JobID |
requestAliasHistory(SteamID steamID)
Request the alias history of the account of the given steam id.
|
void |
requestFriendInfo(java.util.List<SteamID> steamIdList,
int requestedInfo)
Requests persona state for a list of specified SteamID.
|
void |
requestFriendInfo(SteamID steamID,
int requestedInfo)
Requests persona state for a specified SteamID.
|
void |
requestMessageHistory(SteamID steamID)
Requests the last few chat messages with a friend.
|
void |
requestOfflineMessages()
Requests all offline messages.
|
in.dragonbra.javasteam.types.AsyncJobSingle<ProfileInfoCallback> |
requestProfileInfo(SteamID steamID)
Requests profile information for the given
SteamID
Results are returned in a ProfileInfoCallback |
void |
resetPersonaStateFlag()
JavaSteam addition:
Sets the local user's persona state flag back to normal desktop mode.
|
void |
sendChatMessage(SteamID target,
EChatEntryType type,
java.lang.String message)
Sends a chat message to a friend.
|
void |
sendChatRoomMessage(SteamID steamIdChat,
EChatEntryType type,
java.lang.String message)
Sends a message to a chat room.
|
JobID |
setFriendNickname(SteamID friendID,
java.lang.String nickname)
Set the nickname of a friend.
|
void |
setPersonaName(java.lang.String name)
Sets the local user's persona name and broadcasts it over the network.
|
void |
setPersonaState(EPersonaState state)
Sets the local user's persona state and broadcasts it over the network.
|
void |
setPersonaStateFlag(EPersonaStateFlag flag)
JavaSteam addition:
Sets the local user's persona state flag to a valid ClientType
|
void |
unbanChatMember(SteamID steamIdChat,
SteamID steamIdMember)
Unbans the specified chat member from the given chat room.
|
getClient, isExpectDisconnection, setExpectDisconnection, setuppublic void setPersonaName(java.lang.String name)
PersonaChangeCallback callback.name - The name.public void setPersonaState(EPersonaState state)
PersonaChangeCallback callback.state - The state.public void resetPersonaStateFlag()
public void setPersonaStateFlag(EPersonaStateFlag flag)
flag - one of the following
EPersonaStateFlag.ClientTypeWeb,
EPersonaStateFlag.ClientTypeMobile,
EPersonaStateFlag.ClientTypeTenfoot,
or EPersonaStateFlag.ClientTypeVR.public void sendChatMessage(SteamID target, EChatEntryType type, java.lang.String message)
target - The target to send to.type - The type of message to send.message - The message to send.public void addFriend(java.lang.String accountNameOrEmail)
accountNameOrEmail - The account name or email of the user.public void addFriend(SteamID steamID)
steamID - The SteamID of the friend to add.public void removeFriend(SteamID steamID)
steamID - The SteamID of the friend to remove.public void joinChat(SteamID steamID)
steamID - The SteamID of the chat room.public void leaveChat(SteamID steamID)
steamID - The SteamID of the chat room.public void sendChatRoomMessage(SteamID steamIdChat, EChatEntryType type, java.lang.String message)
steamIdChat - The SteamID of the chat room.type - The message type.message - The message.public void inviteUserToChat(SteamID steamIdUser, SteamID steamIdChat)
ChatActionResultCallback callback.steamIdUser - The SteamID of the user to invite.steamIdChat - The SteamID of the chat room to invite the user to.public void kickChatMember(SteamID steamIdChat, SteamID steamIdMember)
steamIdChat - The SteamID of chat room to kick the member from.steamIdMember - The SteamID of the member to kick from the chat.public void banChatMember(SteamID steamIdChat, SteamID steamIdMember)
steamIdChat - The SteamID of chat room to ban the member from.steamIdMember - The SteamID of the member to ban from the chat.public void unbanChatMember(SteamID steamIdChat, SteamID steamIdMember)
steamIdChat - The SteamID of chat room to unban the member from.steamIdMember - The SteamID of the member to unban from the chat.public void requestFriendInfo(java.util.List<SteamID> steamIdList, int requestedInfo)
PersonaState.steamIdList - A list of SteamIDs to request the info of.requestedInfo - The requested info flags. If none specified, this uses SteamConfiguration.getDefaultPersonaStateFlags().public void requestFriendInfo(SteamID steamID, int requestedInfo)
PersonaState.steamID - A SteamID to request the info of.requestedInfo - The requested info flags. If none specified, this uses SteamConfiguration.getDefaultPersonaStateFlags().public in.dragonbra.javasteam.types.AsyncJobSingle<IgnoreFriendCallback> ignoreFriend(SteamID steamID)
IgnoreFriendCallback.steamID - The SteamID of the friend to ignore or unignore.IgnoreFriendCallback.public in.dragonbra.javasteam.types.AsyncJobSingle<IgnoreFriendCallback> ignoreFriend(SteamID steamID, boolean setIgnore)
IgnoreFriendCallback.steamID - The SteamID of the friend to ignore or unignore.setIgnore - if set to true, the friend will be ignored; otherwise, they will be unignored.IgnoreFriendCallback.public in.dragonbra.javasteam.types.AsyncJobSingle<ProfileInfoCallback> requestProfileInfo(SteamID steamID)
SteamID
Results are returned in a ProfileInfoCallbacksteamID - The SteamID of the friend to request the details of.ProfileInfoCallback.public void requestMessageHistory(SteamID steamID)
FriendMsgHistoryCallbacksteamID - SteamID of the friendpublic void requestOfflineMessages()
FriendMsgHistoryCallback.public JobID setFriendNickname(SteamID friendID, java.lang.String nickname)
NicknameCallback.friendID - the steam id of the friendnickname - the nickname to set toNicknameCallback.public JobID requestAliasHistory(SteamID steamID)
AliasHistoryCallback.steamID - the steam idAliasHistoryCallback.public JobID requestAliasHistory(java.util.List<SteamID> steamIDs)
AliasHistoryCallback.steamIDs - the steam idsAliasHistoryCallback.public void handleMsg(IPacketMsg packetMsg)
ClientMsgHandlerhandleMsg in class ClientMsgHandlerpacketMsg - The packet message that contains the data.