| 1 | using Core.Models; |
| 2 | using System; |
| 3 | using System.Collections.Generic; |
| 4 | using System.Linq; |
| 5 | using System.Text; |
| 6 | using System.Threading.Tasks; |
| 7 | |
| 8 | namespace Core.Servicers.Interfaces |
| 9 | { |
| 10 | public interface IAppData |
| 11 | { |
| 12 | ///<summary> |
| 13 | /// |
| 14 | ///</summary> |
| 15 | void UpdateApp(AppModel app); |
| 16 | ///<summary> |
| 17 | /// |
| 18 | ///</summary> |
| 19 | |
| 20 | ///<summary> |
| 21 | /// |
| 22 | ///</summary> |
| 23 | ///<param name="name"></param> |
| 24 | ///<returns></returns> |
| 25 | AppModel GetApp(string name); |
| 26 | AppModel GetApp(int id); |
| 27 | ///<summary> |
| 28 | /// |
| 29 | ///</summary> |
| 30 | ///<returns></returns> |
| 31 | List<AppModel> GetAllApps(); |
| 32 | void AddApp(AppModel app); |
| 33 | ///<summary> |
| 34 | /// |
| 35 | ///</summary> |
| 36 | void Load(); |
| 37 | ///<summary> |
| 38 | /// |
| 39 | ///</summary> |
| 40 | ///<param name="categoryID"></param> |
| 41 | ///<returns></returns> |
| 42 | List<AppModel> GetAppsByCategoryID(int categoryID); |
| 43 | } |
| 44 | } |