LobbyServer/LobbyServerDto/LobbyHostInfo.cs

25 lines
696 B
C#

using System.ComponentModel.DataAnnotations;
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, this could be an internal address
/// </summary>
[MaxLength(32)]
public string? HostIp { get; set; }
/// <summary>
/// The hosts port
/// </summary>
public int HostPort { get; set; }
}
}