OneDrive Backup
OneDrive Backup
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user