46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace LobbyServerDto
|
|
{
|
|
/// <summary>
|
|
/// If the host updates values of the lobby, it can send this request to update the lobby information on the lobby server
|
|
/// </summary>
|
|
[LobbyMessage]
|
|
public partial class LobbyUpdate
|
|
{
|
|
/// <summary>
|
|
/// The displayname of the lobby
|
|
/// </summary>
|
|
public string Name { get; set; } = string.Empty;
|
|
/// <summary>
|
|
/// The game mode of the lobby
|
|
/// </summary>
|
|
public int GameMode { get; set; }
|
|
/// <summary>
|
|
/// Current count of players in the lobby
|
|
/// </summary>
|
|
public int PlayerCount { get; set; }
|
|
/// <summary>
|
|
/// Max players in the lobby
|
|
/// </summary>
|
|
public int MaxPlayerCount { get; set; }
|
|
/// <summary>
|
|
/// The hash of the password required to enter this lobby
|
|
/// </summary>
|
|
public byte[]? PasswordHash { get; set; }
|
|
/// <summary>
|
|
/// The salt used to hash the password.
|
|
/// </summary>
|
|
[MaxLength(16)]
|
|
public byte[]? PasswordSalt { get; set; }
|
|
/// <summary>
|
|
/// The hosts ip
|
|
/// </summary>
|
|
[MaxLength(32)]
|
|
public string? HostIp { get; set; }
|
|
/// <summary>
|
|
/// The hosts port
|
|
/// </summary>
|
|
public int HostPort { get; set; }
|
|
}
|
|
} |