跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

IAppData.cs

44 行 · 1.3 KB历史下载
1using Core.Models;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace Core.Servicers.Interfaces
9{
10 public interface IAppData
11 {
12 /// <summary>
13 /// 更新app数据,要先调用GetApp获得后更改并传回才有效
14 /// </summary>
15 void UpdateApp(AppModel app);
16 /// <summary>
17 /// 保存app数据更改
18 /// </summary>
19 //void SaveAppChanges();
20 /// <summary>
21 /// 通过进程名称获取app
22 /// </summary>
23 /// <param name="name"></param>
24 /// <returns></returns>
25 AppModel GetApp(string name);
26 AppModel GetApp(int id);
27 /// <summary>
28 /// 获取所有app
29 /// </summary>
30 /// <returns></returns>
31 List<AppModel> GetAllApps();
32 void AddApp(AppModel app);
33 /// <summary>
34 /// 加载已存储的app列表,仅建议在启动时调用一次,无必要请勿再次调用
35 /// </summary>
36 void Load();
37 /// <summary>
38 /// 获取app列表通过分类ID
39 /// </summary>
40 /// <param name="categoryID">分类ID</param>
41 /// <returns></returns>
42 List<AppModel> GetAppsByCategoryID(int categoryID);
43 }
44}