FinalizeUploadResponse.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Text.Json.Serialization;
  6. using System.Threading.Tasks;
  7. namespace Quadarax.Application.TemporarySharedStorage.Client.Dtos.Response
  8. {
  9. /// <summary>
  10. /// Response DTO from finalizing the upload.
  11. /// Contains the file ID and download information for the successfully uploaded file.
  12. /// </summary>
  13. public class FinalizeUploadResponse
  14. {
  15. /// <summary>
  16. /// Unique file identifier generated by the system
  17. /// </summary>
  18. [JsonPropertyName("fileid")]
  19. public string FileId { get; set; } = string.Empty;
  20. /// <summary>
  21. /// Direct URL to the download page for this file
  22. /// </summary>
  23. [JsonPropertyName("permalink")]
  24. public string Permalink { get; set; } = string.Empty;
  25. /// <summary>
  26. /// WordPress shortcode that can be embedded in posts/pages to display download form
  27. /// </summary>
  28. [JsonPropertyName("shortcode")]
  29. public string Shortcode { get; set; } = string.Empty;
  30. }
  31. }