Files
Ragon/Ragon.Server/Sources/Lobby/RagonLobbyPlayer.cs
T

43 lines
1.2 KiB
C#
Raw Normal View History

2023-03-06 10:06:43 +04:00
/*
* Copyright 2023 Eduard Kargin <kargin.eduard@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
2024-04-14 19:07:48 +03:00
using Ragon.Server.Data;
2023-04-13 20:42:05 +04:00
using Ragon.Server.IO;
2023-04-09 10:52:18 +04:00
namespace Ragon.Server.Lobby;
2023-03-06 10:06:43 +04:00
2023-04-09 10:52:18 +04:00
public enum ConnectionStatus
2023-03-06 10:06:43 +04:00
{
Unauthorized,
2023-04-09 10:52:18 +04:00
InProcess,
2023-03-06 10:06:43 +04:00
Authorized,
}
public class RagonLobbyPlayer
{
2023-04-13 20:42:05 +04:00
public INetworkConnection Connection { get; }
2023-03-06 10:06:43 +04:00
public string Id { get; private set; }
2023-04-09 10:52:18 +04:00
public string Name { get; private set; }
2024-04-29 09:12:42 +03:00
public string Payload { get; private set; }
2023-03-06 10:06:43 +04:00
2024-04-29 09:12:42 +03:00
public RagonLobbyPlayer(INetworkConnection connection, string id, string name, string payload)
2023-03-06 10:06:43 +04:00
{
2023-04-09 10:52:18 +04:00
Id = id;
Name = name;
2023-04-13 20:42:05 +04:00
Connection = connection;
2024-04-29 09:12:42 +03:00
Payload = payload;
2023-03-06 10:06:43 +04:00
}
}