1 地震仪告警记录中故障次数隐藏;电力载波机和光电交换机的供电状态隐藏; 2 除漏水和保护板事件的数据按照浮点数解析,别的按照整数解析; 3 解决TCP Server和Client存在的问题,包括无法监测到客户端连接,无法监测到服务端断开等问题;
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(); }
|
|
}
|
|
}
|
|
}
|