GroupFileItem.cs
1.42 KB
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
using HslCommunication.BasicFramework;
using System;
namespace HslCommunication.Enthernet
{
/// <summary>
/// 单个文件的存储
/// </summary>
public class GroupFileItem
{
#region Public Members
/// <summary>
/// 文件的名称
/// </summary>
public string FileName { get; set; }
/// <summary>
/// 文件的大小
/// </summary>
public long FileSize { get; set; }
/// <summary>
/// 文件的映射名称
/// </summary>
public string MappingName { get; set; }
/// <summary>
/// 文件的下载次数
/// </summary>
public long DownloadTimes { get; set; }
/// <summary>
/// 文件的上传时间
/// </summary>
public DateTime UploadTime { get; set; }
/// <summary>
/// 文件的上传人,拥有者
/// </summary>
public string Owner { get; set; }
/// <summary>
/// 文件的额外描述
/// </summary>
public string Description { get; set; }
#endregion
#region Get Size Text
/// <summary>
/// 获取大小
/// </summary>
/// <returns>文件大小的字符串描述形式</returns>
public string GetTextFromFileSize()
{
return SoftBasic.GetSizeDescription(FileSize);
}
#endregion
}
}