Table of Contents

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

TPayload

The response payload DTO type.

Inheritance
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

payload TPayload

The 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

string

RequestId

Gets or sets the correlation identifier shared by a request and its response.

public string RequestId { get; set; }

Property Value

string

Success

Gets or sets whether the request completed successfully.

public bool Success { get; set; }

Property Value

bool