Private/Session/_Classes.ps1
class Session { [string] $Uri [string] $Token [bool]$isValid [string]$InvalidReason [pscredential] $Credential [datetime] $Expires Session() { $this.isValid = $false $this.Uri = "" } Session( [string] $Uri) { $this.isValid = $true $this.Uri = $Uri } } |