using System; using System.Collections.Generic; using System.Threading.Tasks; using QuantEngine.Core.Interfaces; using QuantEngine.Core.Models; namespace QuantEngine.Application.Services { public class WorkspaceService { private readonly IWorkspaceRepository _repository; public WorkspaceService(IWorkspaceRepository repository) { _repository = repository; } public Task> GetSettingsAsync() => _repository.GetSettingsAsync(); public Task GetSettingByKeyAsync(string key) => _repository.GetSettingByKeyAsync(key); public Task UpsertSettingAsync(Setting setting) => _repository.UpsertSettingAsync(setting); public Task DeleteSettingAsync(string key) => _repository.DeleteSettingAsync(key); public Task> GetAccountSnapshotsAsync() => _repository.GetAccountSnapshotsAsync(); public Task InsertAccountSnapshotsAsync(IEnumerable snapshots) => _repository.InsertAccountSnapshotsAsync(snapshots); public Task ClearAccountSnapshotsAsync() => _repository.ClearAccountSnapshotsAsync(); } }