49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
![]() |
/*****************************************************************
|
|||
|
* 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
|
|||
|
}
|
|||
|
}
|