using System;
namespace Update.Core.Entities
{
///
/// 增量跟新包
///
public class DiffPackage : IPackage, IComparable
{
///
/// 更新包文件名
///
public string FileName { get; set; }
///
/// 起始版本
///
public Version From { get; set; }
///
/// 目标版本
///
public Version To { get; set; }
///
/// 比较
///
/// 要比较的更新包
/// 如果较新返回正数,较旧返回负数,相等返回 0
public int CompareTo(DiffPackage other)
{
return this.From.CompareTo(other.From);
}
}
}