AliDDNS/net.nutcore.aliddns/AutoUpdater/AutoUpdateHelper/LocalFile.cs

54 lines
1.5 KiB
C#
Raw Normal View History

2021-01-03 22:24:37 +08:00
/*****************************************************************
* Copyright (C) Knights Warrior Corporation. All rights reserved.
*
* Author: 殿Knights Warrior
* Email: KnightsWarrior@msn.com
* Website: http://www.cnblogs.com/KnightsWarrior/ https://github.com/knightswarrior
* Create Date: 5/8/2010
* Usage:
*
* RevisionHistory
* Date Author Description
*
*****************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace KnightsWarriorAutoupdater
{
public class LocalFile
{
#region The private fields
private string path = "";
private string lastver = "";
private int size = 0;
#endregion
#region The public property
[XmlAttribute("path")]
public string Path { get { return path; } set { path = value; } }
[XmlAttribute("lastver")]
public string LastVer { get { return lastver; } set { lastver = value; } }
[XmlAttribute("size")]
public int Size { get { return size; } set { size = value; } }
#endregion
#region The constructor of LocalFile
public LocalFile(string path, string ver, int size)
{
this.path = path;
this.lastver = ver;
this.size = size;
}
public LocalFile()
{
}
#endregion
}
}