sealed data model classes

This commit is contained in:
krut_ni 2025-06-30 16:13:35 +02:00
parent ef30a2edd1
commit d7678121bc
11 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
namespace AIStudio.Tools; namespace AIStudio.Tools;
// ReSharper disable ClassNeverInstantiated.Global // ReSharper disable ClassNeverInstantiated.Global
public class ContentStreamImageMetadata: ContentStreamSseMetadata; public sealed class ContentStreamImageMetadata: ContentStreamSseMetadata;

View File

@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
namespace AIStudio.Tools; namespace AIStudio.Tools;
public class ContentStreamMetadataJsonConverter : JsonConverter<ContentStreamSseMetadata> public sealed class ContentStreamMetadataJsonConverter : JsonConverter<ContentStreamSseMetadata>
{ {
public override ContentStreamSseMetadata? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) public override ContentStreamSseMetadata? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{ {

View File

@ -4,7 +4,7 @@ namespace AIStudio.Tools;
// ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable ClassNeverInstantiated.Global // ReSharper disable ClassNeverInstantiated.Global
public class ContentStreamPdfDetails public sealed class ContentStreamPdfDetails
{ {
[JsonPropertyName("page_number")] [JsonPropertyName("page_number")]
public int? PageNumber { get; init; } public int? PageNumber { get; init; }

View File

@ -4,7 +4,7 @@ namespace AIStudio.Tools;
// ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable ClassNeverInstantiated.Global // ReSharper disable ClassNeverInstantiated.Global
public class ContentStreamPdfMetadata : ContentStreamSseMetadata public sealed class ContentStreamPdfMetadata : ContentStreamSseMetadata
{ {
[JsonPropertyName("Pdf")] [JsonPropertyName("Pdf")]
public ContentStreamPdfDetails? Pdf { get; init; } public ContentStreamPdfDetails? Pdf { get; init; }

View File

@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace AIStudio.Tools; namespace AIStudio.Tools;
public class ContentStreamPptxImageData public sealed class ContentStreamPptxImageData
{ {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string? Id { get; init; } public string? Id { get; init; }

View File

@ -4,7 +4,7 @@ namespace AIStudio.Tools;
// ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable ClassNeverInstantiated.Global // ReSharper disable ClassNeverInstantiated.Global
public class ContentStreamPresentationMetadata : ContentStreamSseMetadata public sealed class ContentStreamPresentationMetadata : ContentStreamSseMetadata
{ {
[JsonPropertyName("Presentation")] [JsonPropertyName("Presentation")]
public ContentStreamPresentationDetails? Presentation { get; init; } public ContentStreamPresentationDetails? Presentation { get; init; }

View File

@ -4,7 +4,7 @@ namespace AIStudio.Tools;
// ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable ClassNeverInstantiated.Global // ReSharper disable ClassNeverInstantiated.Global
public class ContentStreamSpreadsheetDetails public sealed class ContentStreamSpreadsheetDetails
{ {
[JsonPropertyName("sheet_name")] [JsonPropertyName("sheet_name")]
public string? SheetName { get; init; } public string? SheetName { get; init; }

View File

@ -4,7 +4,7 @@ namespace AIStudio.Tools;
// ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable ClassNeverInstantiated.Global // ReSharper disable ClassNeverInstantiated.Global
public class ContentStreamSpreadsheetMetadata : ContentStreamSseMetadata public sealed class ContentStreamSpreadsheetMetadata : ContentStreamSseMetadata
{ {
[JsonPropertyName("Spreadsheet")] [JsonPropertyName("Spreadsheet")]
public ContentStreamSpreadsheetDetails? Spreadsheet { get; init; } public ContentStreamSpreadsheetDetails? Spreadsheet { get; init; }

View File

@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace AIStudio.Tools; namespace AIStudio.Tools;
public class ContentStreamSseEvent public sealed class ContentStreamSseEvent
{ {
[JsonPropertyName("content")] [JsonPropertyName("content")]
public string? Content { get; init; } public string? Content { get; init; }

View File

@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
namespace AIStudio.Tools; namespace AIStudio.Tools;
// ReSharper disable ClassNeverInstantiated.Global // ReSharper disable ClassNeverInstantiated.Global
public class ContentStreamTextDetails public sealed class ContentStreamTextDetails
{ {
[JsonPropertyName("line_number")] [JsonPropertyName("line_number")]
public int? LineNumber { get; init; } public int? LineNumber { get; init; }

View File

@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
namespace AIStudio.Tools; namespace AIStudio.Tools;
// ReSharper disable ClassNeverInstantiated.Global // ReSharper disable ClassNeverInstantiated.Global
public class ContentStreamTextMetadata : ContentStreamSseMetadata public sealed class ContentStreamTextMetadata : ContentStreamSseMetadata
{ {
[JsonPropertyName("Text")] [JsonPropertyName("Text")]
public ContentStreamTextDetails? Text { get; init; } public ContentStreamTextDetails? Text { get; init; }