28 lines
574 B
C#
28 lines
574 B
C#
namespace PS.IPAM;
|
|
|
|
using System;
|
|
|
|
/// <summary>
|
|
/// Represents an authenticated session with phpIPAM API.
|
|
/// </summary>
|
|
[Serializable]
|
|
public sealed record Session(
|
|
AuthType AuthType,
|
|
string Token,
|
|
string AppID,
|
|
string URL,
|
|
DateTime? Expires,
|
|
object? Credentials
|
|
)
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the current authentication token.
|
|
/// </summary>
|
|
public string Token { get; set; } = Token;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the token expiration time.
|
|
/// </summary>
|
|
public DateTime? Expires { get; set; } = Expires;
|
|
}
|