2021-07-23 17:40:31 +05:00
|
|
|
|
using System;
|
2021-11-01 16:41:25 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-07-23 17:40:31 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Data
|
|
|
|
|
{
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DTO информации о файле. Используется для загрузки файла.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class FileInfoDto : IId, IWellRelated
|
2021-07-23 17:40:31 +05:00
|
|
|
|
{
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// <inheritdoc/>
|
2021-07-23 17:40:31 +05:00
|
|
|
|
public int Id { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
2021-08-29 17:25:16 +05:00
|
|
|
|
public int IdWell { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// id категории файла
|
|
|
|
|
/// </summary>
|
2021-07-23 17:40:31 +05:00
|
|
|
|
public int IdCategory { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id автора
|
|
|
|
|
/// </summary>
|
2022-02-21 17:55:50 +05:00
|
|
|
|
public int? IdAuthor { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// имя файла
|
|
|
|
|
/// </summary>
|
2021-08-29 17:25:16 +05:00
|
|
|
|
public string Name { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// дата загрузки
|
|
|
|
|
/// </summary>
|
2021-07-23 17:40:31 +05:00
|
|
|
|
public DateTime UploadDate { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// размер в байтах
|
|
|
|
|
/// </summary>
|
2021-08-31 12:29:27 +05:00
|
|
|
|
public long Size { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DTO автора
|
|
|
|
|
/// </summary>
|
2021-08-31 12:29:27 +05:00
|
|
|
|
public UserDto Author { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// список отметок файла
|
|
|
|
|
/// </summary>
|
2022-04-11 18:00:34 +05:00
|
|
|
|
public IEnumerable<FileMarkDto> FileMarks { get; set; }
|
2021-07-23 17:40:31 +05:00
|
|
|
|
}
|
|
|
|
|
}
|