Class SteamUnifiedMessages
- java.lang.Object
-
- in.dragonbra.javasteam.handlers.ClientMsgHandler
-
- in.dragonbra.javasteam.steam.handlers.steamunifiedmessages.SteamUnifiedMessages
-
public class SteamUnifiedMessages extends ClientMsgHandler
- Since:
- 2023-01-04
This handler is used for interacting with Steamworks unified messaging
-
-
Field Summary
-
Fields inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
client
-
-
Constructor Summary
Constructors Constructor Description SteamUnifiedMessages()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleMsg(IPacketMsg packetMsg)Handles a client message.<TRequest extends com.google.protobuf.GeneratedMessageV3.Builder<TRequest>>
JobIDsendMessage(java.lang.String rpcName, com.google.protobuf.GeneratedMessageV3 message)Sends a message.<TRequest extends com.google.protobuf.GeneratedMessageV3.Builder<TRequest>>
voidsendNotification(java.lang.String rpcName, com.google.protobuf.GeneratedMessageV3 message)Sends a notification.-
Methods inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
getClient, isExpectDisconnection, setExpectDisconnection, setup
-
-
-
-
Method Detail
-
handleMsg
public void handleMsg(IPacketMsg packetMsg)
Description copied from class:ClientMsgHandlerHandles a client message. This should not be called directly.- Specified by:
handleMsgin classClientMsgHandler- Parameters:
packetMsg- The packet message that contains the data.
-
sendMessage
public <TRequest extends com.google.protobuf.GeneratedMessageV3.Builder<TRequest>> JobID sendMessage(java.lang.String rpcName, com.google.protobuf.GeneratedMessageV3 message)
Sends a message. Results are returned in aServiceMethodResponse.- Type Parameters:
TRequest- The type of protobuf object.- Parameters:
rpcName- Name of the RPC endpoint. Takes the format ServiceName.RpcNamemessage- The message to send.- Returns:
- The JobID of the request. This can be used to find the appropriate
ServiceMethodResponse.
-
sendNotification
public <TRequest extends com.google.protobuf.GeneratedMessageV3.Builder<TRequest>> void sendNotification(java.lang.String rpcName, com.google.protobuf.GeneratedMessageV3 message)Sends a notification.- Type Parameters:
TRequest- The type of protobuf object.- Parameters:
rpcName- Name of the RPC endpoint. Takes the format ServiceName.RpcNamemessage- The message to send.
-
-