d70d81ebdf
OneDrive Backup
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
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; }
|
|
}
|
|
}
|