网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
using Dpz.Core.Public.ViewModel.Steam;

namespace Dpz.Core.Service.RepositoryService;

public interface ISteamGameService
{
    /// <summary>
    /// 游戏logo下载完成
    /// </summary>
    event LogoDownload OnLogoDownloadComplete;

    /// <summary>
    /// 成就图标(未完成,灰色)下载完成
    /// </summary>
    event AchievementIconGrayDownload OnAchievementIconGrayDownloadComplete;

    /// <summary>
    /// 已解锁成就图标(已完成,彩色)下载完成
    /// </summary>
    event AchievementIconDownload OnAchievementIconDownloadComplete;

    /// <summary>
    /// 更新游戏库
    /// </summary>
    /// <returns></returns>
    Task UpdateGamesAsync();

    /// <summary>
    /// 获取游戏库
    /// </summary>
    /// <returns></returns>
    Task<List<VmSteamGame>> GetGamesAsync();

    /// <summary>
    /// 获取游戏详情
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<VmSteamGame?> GetGameAsync(int id);
}
loading