fix: make cache control class abstract

This commit is contained in:
Stevan Freeborn
2024-08-17 17:51:45 -05:00
parent 987fbe9742
commit 6431e2a113
+2 -2
View File
@@ -5,7 +5,7 @@ namespace AnthropicClient.Models;
/// <summary> /// <summary>
/// Represents the cache control to be used for content. /// Represents the cache control to be used for content.
/// </summary> /// </summary>
public class CacheControl public abstract class CacheControl
{ {
/// <summary> /// <summary>
/// Gets the type of the cache control. /// Gets the type of the cache control.
@@ -18,7 +18,7 @@ public class CacheControl
/// <param name="type">The type of the cache control.</param> /// <param name="type">The type of the cache control.</param>
/// <returns>A new instance of the <see cref="CacheControl"/> class.</returns> /// <returns>A new instance of the <see cref="CacheControl"/> class.</returns>
/// <exception cref="ArgumentException">Thrown when the type is null or whitespace.</exception> /// <exception cref="ArgumentException">Thrown when the type is null or whitespace.</exception>
public CacheControl(string type) protected CacheControl(string type)
{ {
ArgumentValidator.ThrowIfNullOrWhitespace(type, nameof(type)); ArgumentValidator.ThrowIfNullOrWhitespace(type, nameof(type));