feat(News): refactor news service and add sentiment tracking

This commit is contained in:
2026-08-09 21:01:41 +02:00
parent 605e41cfeb
commit aff831cf58
390 changed files with 115094 additions and 9 deletions
@@ -0,0 +1,33 @@
using System.ComponentModel.DataAnnotations;
namespace FinlyticNews.Entities;
/// <summary>
/// Represents a news or feed source configuration retrieved from the database to discover article links.
/// </summary>
public class ArticleSourceEntity
{
/// <summary>
/// Gets or sets the unique primary key identifier.
/// </summary>
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
/// <summary>
/// Gets or sets the target URL or domain feed address (e.g., RSS XML URL or HTML listing URL).
/// </summary>
[Required]
public string Source { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the human-readable display name of the news provider.
/// </summary>
[Required]
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the adapter type keyword used to resolve the parsing adapter (e.g., "rss", "finanznachrichten").
/// </summary>
[Required]
public string Type { get; set; } = string.Empty;
}