feat(Core): update DTOs and shared models
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace FinlyticCore.Dtos.News;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a news article discovered by a feed/page scanner, carrying parsed metadata such as title, summary, publication date, language, and associated ISINs.
|
||||
/// </summary>
|
||||
public record DiscoveredArticle(
|
||||
[property: JsonPropertyName("url")]
|
||||
string Url,
|
||||
[property: JsonPropertyName("isins")]
|
||||
List<string>? Isins = null,
|
||||
[property: JsonPropertyName("title")]
|
||||
string? Title = null,
|
||||
[property: JsonPropertyName("summary")]
|
||||
string? Summary = null,
|
||||
[property: JsonPropertyName("publishedAt")]
|
||||
DateTime? PublishedAt = null,
|
||||
[property: JsonPropertyName("language")]
|
||||
string? Language = null,
|
||||
[property: JsonPropertyName("sourceName")]
|
||||
string? SourceName = null
|
||||
);
|
||||
Reference in New Issue
Block a user