phase 1
This commit is contained in:
19
ModVersionChecker/service/interfaces/IApiService.cs
Normal file
19
ModVersionChecker/service/interfaces/IApiService.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using ModVersionChecker.repository.api.dto;
|
||||
using NuGet.Versioning;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModVersionChecker.service.interfaces
|
||||
{
|
||||
public interface IApiService
|
||||
{
|
||||
Task<List<AppVersionsResponse>> GetAppVersionsAsync(List<App> apps);
|
||||
Task<List<TypeResponse>> GetTypes();
|
||||
Task<List<SourceResponse>> GetSources();
|
||||
Task<AppVersionsResponse?> GetAppLatestVersionAsync(App app);
|
||||
Task<bool> AuthenticateAsync(string username, string password);
|
||||
Task<List<App>> GetAppsByIds(App[] apps);
|
||||
Task<List<App>?> SearchApps(string searchText);
|
||||
|
||||
}
|
||||
}
|
14
ModVersionChecker/service/interfaces/INotifyIconService.cs
Normal file
14
ModVersionChecker/service/interfaces/INotifyIconService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModVersionChecker.service.interfaces
|
||||
{
|
||||
public interface INotifyIconService
|
||||
{
|
||||
void SetNotifyIcon(NotifyIcon icon);
|
||||
void ShowBalloonTip(int millis, string title, string message, ToolTipIcon icon);
|
||||
}
|
||||
}
|
15
ModVersionChecker/service/interfaces/IVersionService.cs
Normal file
15
ModVersionChecker/service/interfaces/IVersionService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModVersionChecker.service.interfaces
|
||||
{
|
||||
public interface IVersionService
|
||||
{
|
||||
App CheckApp(App app);
|
||||
|
||||
Task CheckAllApps();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user