2024-01-29 16:02:47 +00:00
|
|
|
|
namespace DiscordRewards
|
2024-01-22 09:27:07 +00:00
|
|
|
|
{
|
|
|
|
|
public class GiveRewardsCommand
|
|
|
|
|
{
|
|
|
|
|
public RewardUsersCommand[] Rewards { get; set; } = Array.Empty<RewardUsersCommand>();
|
2024-04-07 12:04:31 +00:00
|
|
|
|
public MarketAverage[] Averages { get; set; } = Array.Empty<MarketAverage>();
|
2024-04-08 11:55:39 +00:00
|
|
|
|
public string[] EventsOverview { get; set; } = Array.Empty<string>();
|
2024-06-17 13:34:08 +00:00
|
|
|
|
|
|
|
|
|
public bool HasAny()
|
|
|
|
|
{
|
|
|
|
|
return Rewards.Any() || Averages.Any() || EventsOverview.Any();
|
|
|
|
|
}
|
2024-01-22 09:27:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class RewardUsersCommand
|
|
|
|
|
{
|
|
|
|
|
public ulong RewardId { get; set; }
|
|
|
|
|
public string[] UserAddresses { get; set; } = Array.Empty<string>();
|
|
|
|
|
}
|
2024-04-07 12:04:31 +00:00
|
|
|
|
|
|
|
|
|
public class MarketAverage
|
|
|
|
|
{
|
|
|
|
|
public int NumberOfFinished { get; set; }
|
2024-04-12 07:12:51 +00:00
|
|
|
|
public int TimeRangeSeconds { get; set; }
|
2024-04-07 12:04:31 +00:00
|
|
|
|
public float Price { get; set; }
|
|
|
|
|
public float Size { get; set; }
|
|
|
|
|
public float Duration { get; set; }
|
|
|
|
|
public float Collateral { get; set; }
|
|
|
|
|
public float ProofProbability { get; set; }
|
|
|
|
|
}
|
2024-01-22 09:27:07 +00:00
|
|
|
|
}
|