@@ -22,23 +22,23 @@ public sealed class JsonApiMediaType : IEquatable<JsonApiMediaType>
2222 /// <summary>
2323 /// Gets the JSON:API media type with the "https://jsonapi.org/ext/atomic" extension.
2424 /// </summary>
25- public static readonly JsonApiMediaType AtomicOperations = new ( [ JsonApiExtension . AtomicOperations ] ) ;
25+ public static readonly JsonApiMediaType AtomicOperations = new ( [ JsonApiMediaTypeExtension . AtomicOperations ] ) ;
2626
2727 /// <summary>
2828 /// Gets the JSON:API media type with the "atomic-operations" extension.
2929 /// </summary>
30- public static readonly JsonApiMediaType RelaxedAtomicOperations = new ( [ JsonApiExtension . RelaxedAtomicOperations ] ) ;
30+ public static readonly JsonApiMediaType RelaxedAtomicOperations = new ( [ JsonApiMediaTypeExtension . RelaxedAtomicOperations ] ) ;
3131
32- public IReadOnlySet < JsonApiExtension > Extensions { get ; }
32+ public IReadOnlySet < JsonApiMediaTypeExtension > Extensions { get ; }
3333
34- public JsonApiMediaType ( IReadOnlySet < JsonApiExtension > extensions )
34+ public JsonApiMediaType ( IReadOnlySet < JsonApiMediaTypeExtension > extensions )
3535 {
3636 ArgumentGuard . NotNull ( extensions ) ;
3737
3838 Extensions = extensions ;
3939 }
4040
41- public JsonApiMediaType ( IEnumerable < JsonApiExtension > extensions )
41+ public JsonApiMediaType ( IEnumerable < JsonApiMediaTypeExtension > extensions )
4242 {
4343 ArgumentGuard . NotNull ( extensions ) ;
4444
@@ -69,7 +69,7 @@ private static (JsonApiMediaType MediaType, decimal QualityFactor)? TryParse(str
6969
7070 if ( isBaseMatch )
7171 {
72- HashSet < JsonApiExtension > extensions = [ ] ;
72+ HashSet < JsonApiMediaTypeExtension > extensions = [ ] ;
7373
7474 decimal qualityFactor = 1.0m ;
7575
@@ -97,13 +97,13 @@ private static (JsonApiMediaType MediaType, decimal QualityFactor)? TryParse(str
9797 return null ;
9898 }
9999
100- private static void ParseExtensions ( NameValueHeaderValue parameter , HashSet < JsonApiExtension > extensions )
100+ private static void ParseExtensions ( NameValueHeaderValue parameter , HashSet < JsonApiMediaTypeExtension > extensions )
101101 {
102102 string parameterValue = parameter . GetUnescapedValue ( ) . ToString ( ) ;
103103
104104 foreach ( string extValue in parameterValue . Split ( ' ' , StringSplitOptions . RemoveEmptyEntries | StringSplitOptions . TrimEntries ) )
105105 {
106- var extension = new JsonApiExtension ( extValue ) ;
106+ var extension = new JsonApiMediaTypeExtension ( extValue ) ;
107107 extensions . Add ( extension ) ;
108108 }
109109 }
@@ -114,7 +114,7 @@ public override string ToString()
114114 List < NameValueHeaderValue > parameters = [ ] ;
115115 bool requiresEscape = false ;
116116
117- foreach ( JsonApiExtension extension in Extensions )
117+ foreach ( JsonApiMediaTypeExtension extension in Extensions )
118118 {
119119 var extHeaderValue = new NameValueHeaderValue ( ExtSegment ) ;
120120 extHeaderValue . SetAndEscapeValue ( extension . UnescapedValue ) ;
@@ -178,7 +178,7 @@ public override int GetHashCode()
178178 {
179179 int hashCode = 0 ;
180180
181- foreach ( JsonApiExtension extension in Extensions )
181+ foreach ( JsonApiMediaTypeExtension extension in Extensions )
182182 {
183183 hashCode = HashCode . Combine ( hashCode , extension ) ;
184184 }
0 commit comments