Command.cs 919 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Application.Abstractions.Messaging;
  2. namespace Application.Features.Api.DonationAlert.BatchSaveConfig;
  3. public sealed record Command(
  4. int ChannelID,
  5. int MemberID,
  6. List<ConfigItem> Items,
  7. List<int> DeleteIDs
  8. ) : ICommand;
  9. public sealed record ConfigItem(
  10. int? ID,
  11. string Title,
  12. int Amount,
  13. int MatchType,
  14. string Message,
  15. double PlayDelaySec,
  16. double DisplayDurationSec,
  17. string? PopupEffect,
  18. string? TextEffect,
  19. string? NicknameFontFamily,
  20. int NicknameFontSize,
  21. string NicknameFontColor,
  22. string? AmountFontFamily,
  23. int AmountFontSize,
  24. string AmountFontColor,
  25. string? MessageFontFamily,
  26. int MessageFontSize,
  27. string MessageFontColor,
  28. string? TemplateFontFamily,
  29. int TemplateFontSize,
  30. string TemplateFontColor,
  31. bool EnableImage,
  32. string? ImageUrl,
  33. bool EnableSound,
  34. string? SoundUrl,
  35. bool IsActive
  36. );