兼容win7版应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

using AIK.Common.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIK.Common.Interface
{
public interface IUpdateService
{
#region 原生更新-界面无自定义
/// <summary>
/// 手动检查更新
/// </summary>
/// <returns>更新结果</returns>
Task<UpdateProgressDto> CheckForUpdateAsync();
/// <summary>
/// 原版更新(无自定义界面)
/// </summary>
/// <returns></returns>
public Task StartUpdateProcess();
#endregion
#region 新自定义更新-界面可自定义
/// <summary>
/// 新自定义更新(检查更新)
/// </summary>
/// <returns></returns>
public Task<UpdateInfoResult> GetUpdateInfoAsync();
/// <summary>
/// 自定义更新
/// </summary>
/// <returns></returns>
public Task CheckForUpdate();
#endregion
}
}