2
0
mirror of synced 2025-01-28 09:14:58 +00:00

27 lines
778 B
C#
Raw Normal View History

namespace DiscordRewards
2024-01-22 10:27:07 +01:00
{
public class GiveRewardsCommand
{
public RewardUsersCommand[] Rewards { get; set; } = Array.Empty<RewardUsersCommand>();
2024-10-14 09:43:05 +02:00
public ChainEventMessage[] EventsOverview { get; set; } = Array.Empty<ChainEventMessage>();
public string[] Errors { get; set; } = Array.Empty<string>();
public bool HasAny()
{
return Rewards.Any() || EventsOverview.Any();
}
2024-01-22 10:27:07 +01:00
}
public class RewardUsersCommand
{
public ulong RewardId { get; set; }
public string[] UserAddresses { get; set; } = Array.Empty<string>();
}
2024-10-14 09:43:05 +02:00
public class ChainEventMessage
{
public ulong BlockNumber { get; set; }
public string Message { get; set; } = string.Empty;
}
2024-01-22 10:27:07 +01:00
}