72 lines
1.6 KiB
C#
72 lines
1.6 KiB
C#
using JiangsuEarthquake.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JiangsuEarthquake.Models.FTP
|
|
{
|
|
public class FTPModel : NotifyBase
|
|
{
|
|
private int index;
|
|
|
|
public int Index
|
|
{
|
|
get { return index; }
|
|
set { index = value; this.DoNotify(); }
|
|
}
|
|
|
|
private string filename;
|
|
|
|
public string FileName
|
|
{
|
|
get { return filename; }
|
|
set { filename = value; this.DoNotify(); }
|
|
}
|
|
|
|
private DateTime creatime;
|
|
|
|
public DateTime CreateTime
|
|
{
|
|
get { return creatime; }
|
|
set { creatime = value; this.DoNotify(); }
|
|
}
|
|
|
|
private string filesize;
|
|
|
|
public string FileSize
|
|
{
|
|
get { return filesize; }
|
|
set { filesize = value; this.DoNotify(); }
|
|
}
|
|
|
|
private string filepath;
|
|
|
|
public string FilePath
|
|
{
|
|
get { return filepath; }
|
|
set { filepath = value; this.DoNotify(); }
|
|
}
|
|
|
|
private bool isDirectory;
|
|
|
|
/// <summary>
|
|
/// 是否为目录
|
|
/// </summary>
|
|
public bool IsDirectory
|
|
{
|
|
get { return isDirectory; }
|
|
set { isDirectory = value; this.DoNotify(); }
|
|
}
|
|
|
|
private string filetype;
|
|
|
|
public string FileType
|
|
{
|
|
get { return IsDirectory == true ? "文件夹" : ""; }
|
|
set { filetype = value; this.DoNotify(); }
|
|
}
|
|
}
|
|
}
|