File size: 1,975 Bytes
b1b3bae |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DWSIM.Simulate365.Models
{
/// <summary>
/// These models are from Dashboard v2 project, used to have typed response from HttpClient
/// </summary>
public class FilesWithBreadcrumbsResponseModel
{
public FileModel File { get; set; }
public List<BreadcrumbItem> BreadcrumbItems { get; set; }
}
public class FileModel
{
public long Id { get; set; }
public string Name { get; set; } = String.Empty;
public Guid UniqueIdentifier { get; set; } = Guid.Empty;
public long CurrentVersionNumber { get; set; }
public DateTime CreatedAt { get; set; }
public string Comment { get; set; } = string.Empty;
public bool Stared { get; set; } = false;
public long ParentDirectoryId { get; set; }
public DateTime LastModifiedAt { get; set; }
public FileSystemEntityType Type { get; set; }
public List<TagResponseModel> Tags { get; set; }
}
public class BreadcrumbItem
{
public string Name { get; set; }
public Guid UniqueIdentifier { get; set; }
}
public enum FileSystemEntityType
{
File,
Directory
}
public class TagResponseModel
{
public long Id { get; set; }
public string Name { get; set; } = string.Empty;
}
public class UploadFileResponseModel
{
public string Filename { get; set; }
public string OriginalFilename { get; set; }
public Guid? ParentDirectoryUniqueIdentifier { get; set; }
public Guid FileUniqueIdentifier { get; set; }
public string SimulatePath { get; set; }
}
public class FileExistsByPathPostModel
{
public string FilePath { get; set; }
}
public class FileExistsResponseModel
{
public bool Exists { get; set; }
}
}
|