Files
TouchSocket/RRQMSocket.FileTransfer/Control/FileInfo.cs
御风踏青岚 78335d76f8 合并项目
2021-05-07 08:21:06 +08:00

58 lines
1.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//------------------------------------------------------------------------------
// 此代码版权归作者本人若汝棋茗所有
// 源代码使用协议遵循本仓库的开源协议及附加协议若本仓库没有设置则按MIT开源协议授权
// CSDN博客https://blog.csdn.net/qq_40374647
// 哔哩哔哩视频https://space.bilibili.com/94253567
// Gitee源代码仓库https://gitee.com/RRQM_Home
// Github源代码仓库https://github.com/RRQM
// 交流QQ群234762506
// 感谢您的下载和使用
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
namespace RRQMSocket.FileTransfer
{
/// <summary>
/// 文件信息基类
/// </summary>
public class FileInfo
{
/// <summary>
/// 文件名
/// </summary>
public string FileName { get; set; }
/// <summary>
/// 文件大小
/// </summary>
public long FileLength { get; set; }
/// <summary>
/// 文件路径
/// </summary>
public string FilePath { get; set; }
/// <summary>
/// 文件哈希值
/// </summary>
public string FileHash { get; set; }
/// <summary>
/// 文件标志
/// </summary>
public string Flag { get; set; }
/// <summary>
/// 复制
/// </summary>
/// <param name="fileInfo"></param>
public void Copy(FileInfo fileInfo)
{
this.Flag = fileInfo.Flag;
this.FileHash = fileInfo.FileHash;
this.FileLength = fileInfo.FileLength;
this.FileName = fileInfo.FileName;
this.FilePath = fileInfo.FilePath;
}
}
}