mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18:27 -04:00
Fixed some crashes in response strings source generator, reorganized more submodules into their folders
This commit is contained in:
37
src/NadekoBot/Modules/Searches/_Common/CryptoData.cs
Normal file
37
src/NadekoBot/Modules/Searches/_Common/CryptoData.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
#nullable disable
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace NadekoBot.Modules.Searches.Common;
|
||||
|
||||
public class CryptoResponse
|
||||
{
|
||||
public List<CryptoResponseData> Data { get; set; }
|
||||
}
|
||||
|
||||
public class CryptoResponseData
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Symbol { get; set; }
|
||||
public string Slug { get; set; }
|
||||
|
||||
[JsonProperty("cmc_rank")]
|
||||
public int Rank { get; set; }
|
||||
|
||||
public CurrencyQuotes Quote { get; set; }
|
||||
}
|
||||
|
||||
public class CurrencyQuotes
|
||||
{
|
||||
public Quote Usd { get; set; }
|
||||
}
|
||||
|
||||
public class Quote
|
||||
{
|
||||
public double Price { get; set; }
|
||||
public double Market_Cap { get; set; }
|
||||
public string Percent_Change_1h { get; set; }
|
||||
public string Percent_Change_24h { get; set; }
|
||||
public string Percent_Change_7d { get; set; }
|
||||
public double? Volume_24h { get; set; }
|
||||
}
|
Reference in New Issue
Block a user