mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
32 lines
822 B
C#
32 lines
822 B
C#
using System.Collections.Generic;
|
|
|
|
|
|
namespace PepperDash.Essentials.WebSocketServer
|
|
{
|
|
/// <summary>
|
|
/// Represents a ServerTokenSecrets
|
|
/// </summary>
|
|
public class ServerTokenSecrets
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the GrantCode
|
|
/// </summary>
|
|
public string GrantCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Tokens for this server
|
|
/// </summary>
|
|
public Dictionary<string, JoinToken> Tokens { get; set; }
|
|
|
|
/// <summary>
|
|
/// Initialize a new instance of the <see cref="ServerTokenSecrets"/> class with the provided grant code
|
|
/// </summary>
|
|
/// <param name="grantCode">The grant code for this server</param>
|
|
public ServerTokenSecrets(string grantCode)
|
|
{
|
|
GrantCode = grantCode;
|
|
Tokens = new Dictionary<string, JoinToken>();
|
|
}
|
|
}
|
|
}
|