/******************************
* 说明:下载文件实体类
* 创建人:龚宇超
* 创建日期:2018-02-09
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace Lskj.AutoUpdate
{
///
/// 下载文件实体类
///
public class DownloadFileInfo
{
private string _downloadUrl;
private string _fileName;
private string _lastver;
private int _size;
private string _version;
///
/// 下载地址
///
/// The download URL.
public string DownloadUrl { get { return _downloadUrl; } }
///
/// 文件全名称
///
/// The full name of the file.
public string FileFullName { get { return _fileName; } }
///
///文件名称
///
/// The name of the file.
public string FileName { get { return Path.GetFileName(FileFullName); } }
///
/// 最新版本
///
/// The last ver.
public string LastVersion { get { return _lastver; } set { _lastver = value; } }
///
/// 文件大小
///
/// The size.
public int Size { get { return _size; } }
///
/// 版本号
///
/// The version.
public string Version { get { return _version; } set { _version = value; } }
public DownloadFileInfo(string url, string name, string ver, int size, string versionid)
{
this._downloadUrl = url;
this._fileName = name;
this._lastver = ver;
this._size = size;
this._version = versionid;
}
}
}