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
@@ -0,0 +1,41 @@
namespace hassio_onedrive_backup.Contracts
{
public class OnedriveBackup
{
public OnedriveBackup()
{
}
public OnedriveBackup(string fileName, OnedriveItemDescription itemDescription)
{
FileName = fileName;
Slug = itemDescription.Slug;
BackupDate = itemDescription.BackupDate;
InstanceName = itemDescription.InstanceName;
Type = itemDescription.BackupType;
IsProtected = itemDescription.IsProtected;
Size = itemDescription.Size;
Addons = itemDescription.Addons;
Folders = itemDescription.Folders;
}
public string Slug { get; set; }
public string FileName { get; set; }
public DateTime BackupDate { get; set; }
public string? InstanceName { get; set; }
public string Type { get; set; }
public bool IsProtected { get; set; }
public float Size { get; set; }
public IEnumerable<string> Addons { get; set; }
public IEnumerable<string> Folders { get; set; }
}
}