Switched to dedicated sync service
This commit is contained in:
10
Models/ConfigData.cs
Normal file
10
Models/ConfigData.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace OneDriveBackupService.Models;
|
||||
|
||||
public sealed class ConfigData(IConfiguration config) {
|
||||
public string Schedule { get; } = config["Schedule"]!;
|
||||
public string BackupUploadRoot { get; } = config["UploadRoot"]!;
|
||||
public string LocalRoot { get; } = config["LocalRoot"]!;
|
||||
public string IncludeFile { get; } = config["IncludeFile"]!;
|
||||
public int KeepLast { get; } = int.Parse(config["KeepLast"]!);
|
||||
public string OneDriveApiUrl { get; } = config["OneDriveApiUrl"]!;
|
||||
}
|
||||
7
Models/OneDriveItem.cs
Normal file
7
Models/OneDriveItem.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace OneDriveBackupService.Models;
|
||||
|
||||
public sealed class OneDriveItem {
|
||||
public string Id { get; set; } = null!;
|
||||
public string Name { get; set; } = null!;
|
||||
public DateTime Created { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user