Table of Contents

Class JsonApiMediaTypeExtension

Namespace
JsonApiDotNetCore.Middleware
Assembly
JsonApiDotNetCore.dll

Represents a JSON:API extension (in unescaped format), which occurs as an "ext" parameter inside an HTTP Accept or Content-Type header.

[PublicAPI]
public sealed class JsonApiMediaTypeExtension : IEquatable<JsonApiMediaTypeExtension>
Inheritance
JsonApiMediaTypeExtension
Implements
Inherited Members

Constructors

JsonApiMediaTypeExtension(string)

public JsonApiMediaTypeExtension(string unescapedValue)

Parameters

unescapedValue string

Fields

AtomicOperations

public static readonly JsonApiMediaTypeExtension AtomicOperations

Field Value

JsonApiMediaTypeExtension

RelaxedAtomicOperations

public static readonly JsonApiMediaTypeExtension RelaxedAtomicOperations

Field Value

JsonApiMediaTypeExtension

Properties

UnescapedValue

public string UnescapedValue { get; }

Property Value

string

Methods

Equals(JsonApiMediaTypeExtension?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(JsonApiMediaTypeExtension? other)

Parameters

other JsonApiMediaTypeExtension

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.