Table of Contents

Class WhoAmIResponse

Namespace
Quilt4Net.Toolkit.Framework
Assembly
Quilt4Net.Toolkit.dll

Response from the WhoAmI endpoint containing team info and API key capabilities.

public record WhoAmIResponse : IEquatable<WhoAmIResponse>
Inheritance
WhoAmIResponse
Implements
Inherited Members

Properties

AccessLevel

public string AccessLevel { get; init; }

Property Value

string

Areas

The team's areas that are on, such as Content or Monitoring (#144). Null from a server that does not say, which is not the same as none.

public string[] Areas { get; init; }

Property Value

string[]

Scopes

public string[] Scopes { get; init; }

Property Value

string[]

TeamKey

public string TeamKey { get; init; }

Property Value

string

TeamName

public string TeamName { get; init; }

Property Value

string

Methods

HasScope(string)

public bool HasScope(string scope)

Parameters

scope string

Returns

bool

IsAreaOn(string)

Whether the team has the area on; null when the server did not say.

public bool? IsAreaOn(string area)

Parameters

area string

Returns

bool?