~ruther/NosSmooth.Comms

ref: b06241f4c3251cb4b2ddfb0bf29d5936f5906637 NosSmooth.Comms/src/Core/NosSmooth.Comms.Abstractions/Messages/HandshakeResponse.cs -rw-r--r-- 877 bytes
b06241f4 — František Boháček feat: remove Character id and name from HandshakeResponse 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
//  HandshakeResponse.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Remora.Results;

namespace NosSmooth.Comms.Data.Messages;

/// <summary>
/// A response to <see cref="HandshakeRequest"/>.
/// </summary>
/// <param name="ClientRunning">Whether the client is currently running. Will be false in case of an error or if the client has not been started yet.</param>
/// <param name="InitializationResult">The result obtained from client initialization.</param>
/// <param name="CharacterId">The id of current character, if any.</param>
/// <param name="CharacterName">The name of current character, if any.</param>
public record HandshakeResponse
(
    bool ClientRunning,
    Result? InitializationResult,
    Result? BindingManagerResult
);
Do not follow this link