using System.ComponentModel.DataAnnotations;
using System.Net;
namespace LobbyServerDto
{
///
/// If the host updates values of the lobby, it can send this request to update the lobby information on the lobby server
///
[LobbyMessage]
public partial class LobbyUpdate
{
///
/// The displayname of the lobby
///
public string Name { get; set; } = string.Empty;
///
/// The game mode of the lobby
///
public int GameMode { get; set; }
///
/// Current count of players in the lobby
///
public int PlayerCount { get; set; }
///
/// Max players in the lobby
///
public int MaxPlayerCount { get; set; }
///
/// The hash of the password required to enter this lobby
///
public byte[]? PasswordHash { get; set; }
///
/// The salt used to hash the password.
///
[MaxLength(16)]
public byte[]? PasswordSalt { get; set; }
///
/// The hosts ip addresses locally detected. Used the the host information send to clients on their request.
///
[MaxLength(32)]
public IPAddress[]? HostIps { get; set; }
///
/// The hosts port. Used the the host information send to clients on their request.
///
public int HostPort { get; set; }
///
/// The hosts echo port to try if a connection is possible.
///
public int HostTryPort { get; set; }
}
}