Class Response<T>

Namespace
SIMDispatcher.Core.Models
Assembly
SIMDispatcher.Core.dll
public sealed record Response<T> : Response, IEquatable<Response>, IEquatable<Response<T>>

Type Parameters

T
Inheritance
Response<T>
Implements
Inherited Members

Fields

CommandcenterNotFound

public static readonly Response<T> CommandcenterNotFound

Field Value

Response<T>

NotFound

public static readonly Response<T> NotFound

Field Value

Response<T>

Properties

Content

public T? Content { get; init; }

Property Value

T

Methods

AddProblem(object?, string?)

public Response<T> AddProblem(object? problem, string? property = null)

Parameters

problem object
property string

Returns

Response<T>

Create(T)

public static Response<T> Create(T content)

Parameters

content T

Returns

Response<T>

Problem(object?, string?)

public static Response<T> Problem(object? problem, string? property = null)

Parameters

problem object
property string

Returns

Response<T>

ThrowIfFailed()

public T? ThrowIfFailed()

Returns

T