mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-07-28 05:42:57 +00:00
sealed data model classes
This commit is contained in:
parent
ef30a2edd1
commit
d7678121bc
@ -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;
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user