OneDrive Backup

OneDrive Backup
This commit is contained in:
2023-07-28 22:36:06 +07:00
parent e1c6e91a0a
commit d70d81ebdf
244 changed files with 75229 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
using static hassio_onedrive_backup.Contracts.HassAddonsResponse;
namespace onedrive_backup.Models
{
public class BackupModel
{
public string Name { get; set; }
public string Slug { get; set; }
public DateTime Date { get; set; }
public BackupLocation Location { get; set; }
public string OneDriveFileName { get; set; }
public string Type { get; set; }
public bool IsProtected { get; set; }
public float Size { get; set; }
public IEnumerable<Addon> Addons { get; set; }
public IEnumerable<string> Folders { get; set; }
public string DisplayName => string.IsNullOrEmpty(Name) ? Path.GetFileNameWithoutExtension(OneDriveFileName) : Name;
public enum BackupLocation
{
Local,
OneDrive,
Both
}
}
}