LobbyServer/LobbyServerDto/LobbyRequestNatPunch.cs

34 lines
943 B
C#

using System.ComponentModel.DataAnnotations;
namespace LobbyServerDto
{
/// <summary>
/// Request a nat punch from the game host
/// </summary>
[LobbyMessage]
public partial class LobbyRequestNatPunch
{
/// <summary>
/// Id of the lobby
/// </summary>
public Guid LobbyId { get; set; }
/// <summary>
/// Password hash if the lobby is password protected
/// </summary>
[MaxLength(26)]
public byte[]? PasswordHash { get; set; }
/// <summary>
/// Our external ip
/// </summary>
public string? ClientIp { get; set; }
/// <summary>
/// Our external port
/// </summary>
public int ClientPort { get; set; }
/// <summary>
/// Set by the lobby server, this will be the NatPunchId send to the host
/// </summary>
public int NatPunchId { get; set; }
}
}