Table of Contents

Class Resource

Namespace
Nexus.Api.V1
Assembly
Nexus.Api.dll

A resource is part of a resource catalog and holds a list of representations.

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

Constructors

Resource(string, IReadOnlyDictionary<string, JsonElement>?, IReadOnlyList<Representation>?)

A resource is part of a resource catalog and holds a list of representations.

public Resource(string Id, IReadOnlyDictionary<string, JsonElement>? Properties, IReadOnlyList<Representation>? Representations)

Parameters

Id string

Gets the identifier.

Properties IReadOnlyDictionary<string, JsonElement>

Gets the properties.

Representations IReadOnlyList<Representation>

Gets the list of representations.

Properties

Id

Gets the identifier.

public string Id { get; init; }

Property Value

string

Properties

Gets the properties.

public IReadOnlyDictionary<string, JsonElement>? Properties { get; init; }

Property Value

IReadOnlyDictionary<string, JsonElement>

Representations

Gets the list of representations.

public IReadOnlyList<Representation>? Representations { get; init; }

Property Value

IReadOnlyList<Representation>