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-10-14 07:43:05 +00:00
|
|
|
|
public ChainEventMessage[] EventsOverview { get; set; } = Array.Empty<ChainEventMessage>();
|
2024-10-18 09:03:05 +00:00
|
|
|
|
public string[] Errors { get; set; } = Array.Empty<string>();
|
2024-06-17 13:34:08 +00:00
|
|
|
|
|
|
|
|
|
public bool HasAny()
|
|
|
|
|
{
|
2024-08-21 13:08:18 +00:00
|
|
|
|
return Rewards.Any() || EventsOverview.Any();
|
2024-06-17 13:34:08 +00:00
|
|
|
|
}
|
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-10-14 07:43:05 +00:00
|
|
|
|
|
|
|
|
|
public class ChainEventMessage
|
|
|
|
|
{
|
|
|
|
|
public ulong BlockNumber { get; set; }
|
|
|
|
|
public string Message { get; set; } = string.Empty;
|
|
|
|
|
}
|
2024-01-22 09:27:07 +00:00
|
|
|
|
}
|