32 lines
814 B
C#
32 lines
814 B
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace FinlyticCore.Dtos.Fundamentals;
|
|
|
|
/// <summary>
|
|
/// Repräsentiert ein Unternehmensereignis (z. B. Quartalszahlen, Dividendentag).
|
|
/// </summary>
|
|
[Serializable]
|
|
public record CorporateEventDto
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public Guid Id { get; init; }
|
|
|
|
[JsonPropertyName("isin")]
|
|
public string? Isin { get; init; }
|
|
|
|
[JsonPropertyName("ticker")]
|
|
public TickerInfoDto Ticker { get; init; } = new();
|
|
|
|
[JsonPropertyName("companyName")]
|
|
public string? CompanyName { get; init; }
|
|
|
|
[JsonPropertyName("type")]
|
|
public string Type { get; init; } = string.Empty; // z.B. "Earnings", "Ex-Dividend"
|
|
|
|
[JsonIgnore]
|
|
public string EventType => Type;
|
|
|
|
[JsonPropertyName("date")]
|
|
public DateTime Date { get; init; }
|
|
} |