LobbyServer/LobbyServerDto/LobbyHostInfo.cs

30 lines
935 B
C#

using System.ComponentModel.DataAnnotations;
using System.Net;
namespace LobbyServerDto
{
/// <summary>
/// Send to client upon request, this contains the connection info supplied by the host.
/// </summary>
[LobbyMessage]
public partial class LobbyHostInfo
{
/// <summary>
/// Lobby id this information is for
/// </summary>
public Guid LobbyId { get; set; }
/// <summary>
/// The hosts ip addresses locally detected. Used the the host information send to clients on their request.
/// </summary>
[MaxLength(32)]
public IPAddress[]? HostIps { get; set; }
/// <summary>
/// The hosts port
/// </summary>
public int HostPort { get; set; }
/// <summary>
/// The hosts echo port to try if a connection is possible.
/// </summary>
public int HostTryPort { get; set; }
}
}