feat(News): refactor news service and add sentiment tracking
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user