12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System.Collections.Generic;
- using FastReport.Utils.Json.Serialization;
- namespace FastReport.Cloud.FastReport.Models
- {
- internal sealed class FileVM : EntityVM
- {
- [JsonProperty("name")]
- public string Name { get; set; }
- [JsonProperty("parentId")]
- public string ParentId { get; set; }
- [JsonProperty("tags")]
- public ICollection<string> Tags { get; set; }
- [JsonProperty("icon")]
- public byte[] Icon { get; set; }
- [JsonProperty("type")]
- public FileType Type { get; set; }
- [JsonProperty("size")]
- public long Size { get; set; }
- [JsonProperty("subscriptionId")]
- public string SubscriptionId { get; set; }
- //[JsonProperty("status")]
- //public FileStatus Status { get; set; }
- //[JsonProperty("statusReason")]
- //public FileStatusReason StatusReason { get; set; }
- [JsonProperty("errorMessage")]
- public string ErrorMessage { get; set; }
- }
- internal enum FileType
- {
- File = 0,
- Folder = 1,
- }
- }
|