mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Workshop Library - Installed entries WIP
This commit is contained in:
1 parent
c69be2836e
commit
876465cfdb
7 files changed
+148
-5
No files matched your search
@@ -10,6 +10,8 @@ public interface IWorkshopService
|
||||
Task<WorkshopStatus> GetWorkshopStatus(CancellationToken cancellationToken);
|
||||
Task<bool> ValidateWorkshopStatus(CancellationToken cancellationToken);
|
||||
Task NavigateToEntry(Guid entryId, EntryType entryType);
|
||||
|
||||
List<InstalledEntry> GetInstalledEntries();
|
||||
InstalledEntry? GetInstalledEntry(IGetEntryById_Entry entry);
|
||||
InstalledEntry CreateInstalledEntry(IGetEntryById_Entry entry);
|
||||
void SaveInstalledEntry(InstalledEntry entry);
|
||||
|
||||
@@ -103,6 +103,11 @@ public class WorkshopService : IWorkshopService
|
||||
}
|
||||
}
|
||||
|
||||
public List<InstalledEntry> GetInstalledEntries()
|
||||
{
|
||||
return _entryRepository.GetAll().Select(e => new InstalledEntry(e)).ToList();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public InstalledEntry? GetInstalledEntry(IGetEntryById_Entry entry)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user