/****************************** * 说明:更新文件配置对象 * 创建人:龚宇超 * 创建日期:2018-02-09 * 修改人: * 修改日期: * 修改备注: * 版本:1.0.0.0 ******************************/ using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Xml.Serialization; namespace Lskj.AutoUpdate { /// /// 更新文件配置对象 /// public class LocalFile { private string _path; private string _lastver; private int _size; private string _version; /// /// 路径 /// /// The path. [XmlAttribute("path")] public string Path { get { return _path; } set { _path = value; } } /// /// 最新版本 /// /// The last ver. [XmlAttribute("lastver")] public string LastVer { get { return _lastver; } set { _lastver = value; } } /// /// 文件大小 /// /// The size. [XmlAttribute("size")] public int Size { get { return _size; } set { _size = value; } } /// /// 文件版本 /// /// The version. [XmlAttribute("version")] public string Version { get { return _version; } set { _version = value; } } public LocalFile(string path, string ver, int size, string versionid) { this._path = path; this._lastver = ver; this._size = size; this._version = versionid; } public LocalFile() { } } }