FileVM.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Collections.Generic;
  2. using FastReport.Utils.Json.Serialization;
  3. namespace FastReport.Cloud.FastReport.Models
  4. {
  5. internal sealed class FileVM : EntityVM
  6. {
  7. [JsonProperty("name")]
  8. public string Name { get; set; }
  9. [JsonProperty("parentId")]
  10. public string ParentId { get; set; }
  11. [JsonProperty("tags")]
  12. public ICollection<string> Tags { get; set; }
  13. [JsonProperty("icon")]
  14. public byte[] Icon { get; set; }
  15. [JsonProperty("type")]
  16. public FileType Type { get; set; }
  17. [JsonProperty("size")]
  18. public long Size { get; set; }
  19. [JsonProperty("subscriptionId")]
  20. public string SubscriptionId { get; set; }
  21. //[JsonProperty("status")]
  22. //public FileStatus Status { get; set; }
  23. //[JsonProperty("statusReason")]
  24. //public FileStatusReason StatusReason { get; set; }
  25. [JsonProperty("errorMessage")]
  26. public string ErrorMessage { get; set; }
  27. }
  28. internal enum FileType
  29. {
  30. File = 0,
  31. Folder = 1,
  32. }
  33. }