Command.cs 1003 B

123456789101112131415161718192021222324252627282930313233343536
  1. using Application.Abstractions.Messaging;
  2. using Microsoft.AspNetCore.Http;
  3. using SharedKernel.Results;
  4. namespace Application.Features.Admin.Store.Game.Update;
  5. public sealed record Command(
  6. int ID,
  7. string? Code,
  8. string KorName,
  9. string? EngName,
  10. string Publisher,
  11. IFormFile? ThumbnailFile,
  12. bool RemoveThumbnail,
  13. IFormFile? BigImageFile,
  14. bool RemoveBigImage,
  15. string? Description,
  16. decimal CommissionRate,
  17. decimal ApiCommissionRate,
  18. string? Link,
  19. int Order,
  20. bool IsActive,
  21. string? TrailerUrl,
  22. string? MinSpec,
  23. string? RecommendedSpec,
  24. IReadOnlyList<int>? GenreIDs,
  25. IReadOnlyList<int>? CategoryIDs,
  26. IReadOnlyList<IFormFile>? DetailImages,
  27. IReadOnlyList<int>? RemoveImageIDs,
  28. DateOnly? ReleaseDate,
  29. IReadOnlyList<int>? ImageOrder,
  30. IReadOnlyList<Command.LanguageRow>? Languages
  31. ) : ICommand<Result>
  32. {
  33. public sealed record LanguageRow(int GameLanguageID, bool Interface, bool FullAudio, bool Subtitles);
  34. }