30 lines
921 B
C#
30 lines
921 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace LobbyServerDto
|
|
{
|
|
/// <summary>
|
|
/// Send from host to lobby server and releyed to the client by lobby server if the nat punch is finished.
|
|
/// </summary>
|
|
[LobbyMessage]
|
|
public partial class LobbyNatPunchDone
|
|
{
|
|
/// <summary>
|
|
/// The lobby this nat punch was for
|
|
/// </summary>
|
|
public Guid LobbyId { get; set; }
|
|
/// <summary>
|
|
/// Id of the nat punch that the lobby server requested from us in <see cref="LobbyRequestNatPunch"/>
|
|
/// </summary>
|
|
public int NatPunchId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The external ip of the host
|
|
/// </summary>
|
|
[MaxLength(32)]
|
|
public string? ExternalIp { get; set; }
|
|
/// <summary>
|
|
/// The external port of the host
|
|
/// </summary>
|
|
public int ExternalPort { get; set; }
|
|
}
|
|
} |