StableVersion4.3/AppAutoUpdater/AutoUpdater/AutoUpdateHelper/DownloadFileInfo.cs

49 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*****************************************************************
* 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.IO;
namespace KnightsWarriorAutoupdater
{
public class DownloadFileInfo
{
#region The private fields
string downloadUrl = string.Empty;
string fileName = string.Empty;
string lastver = string.Empty;
int size = 0;
#endregion
#region The public property
public string DownloadUrl { get { return downloadUrl; } }
public string FileFullName { get { return fileName; } }
public string FileName { get { return Path.GetFileName(FileFullName); } }
public string LastVer { get { return lastver; } set { lastver = value; } }
public int Size { get { return size; } }
#endregion
#region The constructor of DownloadFileInfo
public DownloadFileInfo(string url, string name, string ver, int size)
{
this.downloadUrl = url;
this.fileName = name;
this.lastver = ver;
this.size = size;
}
#endregion
}
}