daily_digest/Models/CryptoData.cs
2025-04-12 00:27:03 +07:00

12 lines
619 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic; // Для Dictionary
namespace DailyDigestWorker.Models
{
// Модель для хранения курсов криптовалют
public class CryptoData
{
// Используем словарь: Идентификатор крипты (bitcoin, ethereum) -> Внутренний словарь (Валюта -> Курс)
public Dictionary<string, Dictionary<string, decimal>> CryptoRates { get; } = new Dictionary<string, Dictionary<string, decimal>>();
// Пример: {"bitcoin": {"usd": 60000, "rub": 5000000}, "ethereum": ... }
}
}