Class Resource<T>
Represents a resource wrapper with hypermedia links for HATEOAS.
Inherited Members
Namespace: Tournaments.Shared.Hateoas
Assembly: Tournaments.Shared.dll
Syntax
public class Resource<T> where T : class
Type Parameters
| Name | Description |
|---|---|
| T | The type of the resource data. |
Constructors
| Edit this page View SourceResource()
Initializes a new instance of the Resource<T> class.
Declaration
public Resource()
Resource(T)
Initializes a new instance of the Resource<T> class with the specified data.
Declaration
public Resource(T data)
Parameters
| Type | Name | Description |
|---|---|---|
| T | data | The resource data. |
Properties
| Edit this page View SourceData
Gets or sets the resource data.
Declaration
public T Data { get; set; }
Property Value
| Type | Description |
|---|---|
| T |
Links
Gets or sets the list of hypermedia links.
Declaration
public List<Link> Links { get; set; }
Property Value
| Type | Description |
|---|---|
| List<Link> |