Class ServiceMethodResponse
- java.lang.Object
-
- in.dragonbra.javasteam.steam.steamclient.callbackmgr.CallbackMsg
-
- in.dragonbra.javasteam.steam.handlers.steamunifiedmessages.callback.ServiceMethodResponse
-
- All Implemented Interfaces:
ICallbackMsg
public class ServiceMethodResponse extends CallbackMsg
- Since:
- 2023-01-04
This callback is returned in response to a service method sent through
SteamUnifiedMessages.
-
-
Constructor Summary
Constructors Constructor Description ServiceMethodResponse(PacketClientMsgProtobuf packetMsg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.google.protobuf.GeneratedMessageV3.Builder<T>>
TgetDeserializedResponse(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz)Deserializes the response into a protobuf object.java.lang.StringgetMethodName()EResultgetResult()java.lang.StringgetRpcName()java.lang.StringgetServiceName()-
Methods inherited from class in.dragonbra.javasteam.steam.steamclient.callbackmgr.CallbackMsg
getJobID, setJobID
-
-
-
-
Constructor Detail
-
ServiceMethodResponse
public ServiceMethodResponse(PacketClientMsgProtobuf packetMsg)
-
-
Method Detail
-
getResult
public EResult getResult()
- Returns:
- Gets the result of the message.
-
getServiceName
public java.lang.String getServiceName()
- Returns:
- Gets the name of the Service.
-
getRpcName
public java.lang.String getRpcName()
- Returns:
- Gets the name of the RPC method.
-
getMethodName
public java.lang.String getMethodName()
- Returns:
- Gets the full name of the service method.
-
getDeserializedResponse
public <T extends com.google.protobuf.GeneratedMessageV3.Builder<T>> T getDeserializedResponse(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz)
Deserializes the response into a protobuf object.- Type Parameters:
T- Protobuf type of the response message.- Parameters:
clazz- The message class, type erasure.- Returns:
- The response to the message sent through
SteamUnifiedMessages.
-
-