33 lines
778 B
C#
33 lines
778 B
C#
namespace PS.IPAM;
|
|
using System;
|
|
using System.Management.Automation;
|
|
|
|
[Serializable]
|
|
public class Session {
|
|
public AuthType AuthType { get; }
|
|
public string Token { get; set; }
|
|
public string AppID { get; }
|
|
public string URL { get; }
|
|
public DateTime? Expires { get; set; }
|
|
public object? Credentials { get; }
|
|
public Session(
|
|
AuthType authType,
|
|
string token,
|
|
string appId,
|
|
string url,
|
|
DateTime? expires,
|
|
object? credentials
|
|
) {
|
|
AuthType = authType;
|
|
Token = token;
|
|
AppID = appId;
|
|
URL = url;
|
|
Expires = expires;
|
|
Credentials = credentials;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return base.ToString();
|
|
}
|
|
} |