Class P2PResponseMessage<TPayload>
- Namespace
- SteamNetworkLib.Models
- Assembly
- SteamNetworkLib.dll
Base class for typed P2P response messages with a correlation ID.
public abstract class P2PResponseMessage<TPayload> : TypedP2PMessage<P2PResponsePayload<TPayload>>, IP2PResponseMessage, IP2PCorrelatedMessage
Type Parameters
TPayloadThe response payload DTO type.
- Inheritance
-
TypedP2PMessage<P2PResponsePayload<TPayload>>P2PResponseMessage<TPayload>
- Implements
- Inherited Members
Constructors
P2PResponseMessage()
Initializes a new instance of the P2PResponseMessage<TPayload> class.
protected P2PResponseMessage()
P2PResponseMessage(TPayload)
Initializes a new instance of the P2PResponseMessage<TPayload> class.
protected P2PResponseMessage(TPayload payload)
Parameters
payloadTPayloadThe response payload.
Properties
Body
Gets or sets the response body.
public TPayload Body { get; set; }
Property Value
- TPayload
Error
Gets or sets a developer-facing error message when Success is false.
public string Error { get; set; }
Property Value
RequestId
Gets or sets the correlation identifier shared by a request and its response.
public string RequestId { get; set; }
Property Value
Success
Gets or sets whether the request completed successfully.
public bool Success { get; set; }