123456789101112131415161718192021222324 |
- using System.IO;
- using System.Threading.Tasks;
- using VeloeAvaloniaKemonoPartyApp.Services;
- namespace VeloeAvaloniaKemonoPartyApp.Android.Services
- {
- internal class AndroidStorageService : IStorageService
- {
- private string _cacheFolder;
- public AndroidStorageService(string cacheFolder)
- {
- _cacheFolder = cacheFolder;
- if (!Directory.Exists(_cacheFolder))
- Directory.CreateDirectory(_cacheFolder);
- }
- public async Task<string?> GetCacheFolderAsync()
- {
- return await Task.FromResult(_cacheFolder);
- }
- }
- }
|