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
RelaxedAtomicOperations
public static readonly JsonApiMediaTypeExtension RelaxedAtomicOperations
Field Value
Properties
UnescapedValue
public string UnescapedValue { get; }
Property Value
Methods
Equals(JsonApiMediaTypeExtension?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(JsonApiMediaTypeExtension? other)
Parameters
other
JsonApiMediaTypeExtensionAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? other)
Parameters
other
object
Returns
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.