Class Resource
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
IdstringGets the identifier.
PropertiesIReadOnlyDictionary<string, JsonElement>Gets the properties.
RepresentationsIReadOnlyList<Representation>Gets the list of representations.
Properties
Id
Gets the identifier.
public string Id { get; init; }
Property Value
Properties
Gets the properties.
public IReadOnlyDictionary<string, JsonElement>? Properties { get; init; }
Property Value
Representations
Gets the list of representations.
public IReadOnlyList<Representation>? Representations { get; init; }