Workshop Library - Installed entries WIP

This commit is contained in:
Robert committed 2023-09-06 21:24:15 +02:00
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)
{