Tournament Docs Tournament Docs
Tournament Docs Tournament Docs

Search Results for

    Edit this page

    Class Resource<T>

    Represents a resource wrapper with hypermedia links for HATEOAS.

    Inheritance
    object
    Resource<T>
    ResourcePlayer
    ResourceRegistration
    ResourceTournament
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 Source

    Resource()

    Initializes a new instance of the Resource<T> class.

    Declaration
    public Resource()
    | Edit this page View Source

    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 Source

    Data

    Gets or sets the resource data.

    Declaration
    public T Data { get; set; }
    Property Value
    Type Description
    T
    | Edit this page View Source

    Links

    Gets or sets the list of hypermedia links.

    Declaration
    public List<Link> Links { get; set; }
    Property Value
    Type Description
    List<Link>