Table of Contents

Class ResourceResponse<T>

Namespace
Crews.PlanningCenter.Api.Models
Assembly
Crews.PlanningCenter.Api.dll

Represents a strongly-typed JSON:API response wrapper.

public abstract class ResourceResponse<T>

Type Parameters

T

The type of the resource data.

Inheritance
ResourceResponse<T>
Derived
Inherited Members

Constructors

ResourceResponse()

protected ResourceResponse()

Properties

Data

The deserialized resource data from the response body.

public T? Data { get; init; }

Property Value

T

Remarks

This is the equivalent of the Crews.Web.JsonApiClient.JsonApiDocument.Data property deserialized to its specific type.

Document

The deserialized JSON:API document from the response body.

public JsonApiDocument? Document { get; init; }

Property Value

JsonApiDocument

ResponseMessage

The original HttpResponseMessage instance.

public HttpResponseMessage? ResponseMessage { get; init; }

Property Value

HttpResponseMessage