68 lines
1.7 KiB
C#
68 lines
1.7 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using xCommons.Constants;
|
|
using xModels.Base;
|
|
|
|
namespace xFileService.Models.Entities
|
|
{
|
|
/// <summary>
|
|
/// Specified File in Server ...
|
|
/// </summary>
|
|
public class XFile : XBaseGuidIDEntity
|
|
{
|
|
/// <summary>
|
|
/// Specified File Type ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public XFileType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// User Identifier ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
[Required]
|
|
[StringLength(255)]
|
|
public string OwnerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// File Name on Server ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
[Required]
|
|
[StringLength(255)]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// File Path On Server ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
[Required]
|
|
public string Path { get; set; }
|
|
|
|
/// <summary>
|
|
/// Thumbnail FIle Name ...
|
|
/// if File Type Supported Thumbnail ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public string Thumb { get; set; }
|
|
|
|
/// <summary>
|
|
/// Thumbnail File Path ...
|
|
/// if File Type Supported Thumbnail ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public string ThumbPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// File Uploading Time ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public DateTime UploadedOn { get; set; }
|
|
|
|
/// <summary>
|
|
/// Request For Upload File Name on Client ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public string FileName { get; set; }
|
|
}
|
|
} |