Class JobModel
Represents a backup job that can be observed for changes.
Assembly: .dll
Syntax
public class JobModel : INotifyPropertyChanged
Constructors
|
Edit this page
View Source
JobModel()
Mandatory constructor for .NET JSON Deserialization use
Declaration
|
Edit this page
View Source
JobModel(string, string, string, JobSaveTypeEnum, string, string)
Initializes a new instance of the JobModel class.
Declaration
public JobModel(string name, string fileSource, string fileTarget, JobSaveTypeEnum jobSaveTypeEnum, string lastFullBackupPath, string lastSaveDifferentialPath)
Parameters
Type |
Name |
Description |
string |
name |
The name of the job.
|
string |
fileSource |
The source file path.
|
string |
fileTarget |
The target file path.
|
JobSaveTypeEnum |
jobSaveTypeEnum |
The type of save operation.
|
string |
lastFullBackupPath |
|
string |
lastSaveDifferentialPath |
|
Properties
|
Edit this page
View Source
CanExecute
Declaration
public bool CanExecute { get; }
Property Value
|
Edit this page
View Source
Declaration
public string CancelJobButton { get; }
Property Value
|
Edit this page
View Source
FileInPending
Declaration
public FileInPendingJobDTO FileInPending { get; set; }
Property Value
|
Edit this page
View Source
FileSize
Declaration
public string FileSize { get; set; }
Property Value
|
Edit this page
View Source
FileSource
Declaration
public string FileSource { get; set; }
Property Value
|
Edit this page
View Source
FileTarget
Declaration
public string FileTarget { get; set; }
Property Value
|
Edit this page
View Source
FileTransferTime
Declaration
public string FileTransferTime { get; set; }
Property Value
|
Edit this page
View Source
Id
Declaration
public int Id { get; set; }
Property Value
|
Edit this page
View Source
IsCheckBoxVisibleAndEnable
Declaration
public bool IsCheckBoxVisibleAndEnable { get; }
Property Value
|
Edit this page
View Source
IsJobInPending
Declaration
public bool IsJobInPending { get; }
Property Value
|
Edit this page
View Source
IsJobInPendingOrActive
Declaration
public bool IsJobInPendingOrActive { get; }
Property Value
|
Edit this page
View Source
LastFullBackupPath
Declaration
public string LastFullBackupPath { get; set; }
Property Value
|
Edit this page
View Source
LastSaveDifferentialPath
Declaration
public string LastSaveDifferentialPath { get; set; }
Property Value
|
Edit this page
View Source
Name
Declaration
public string Name { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string PendingJobButton { get; }
Property Value
|
Edit this page
View Source
PriorityFileExtensions
Declaration
public ObservableCollection<string> PriorityFileExtensions { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string ResumeJobButton { get; }
Property Value
|
Edit this page
View Source
SaveState
Declaration
[JsonConverter(typeof(EnumConverterUtil.JsonEnumConverter<JobSaveStateEnum>))]
public JobSaveStateEnum SaveState { get; set; }
Property Value
|
Edit this page
View Source
SaveType
Declaration
[JsonConverter(typeof(EnumConverterUtil.JsonEnumConverter<JobSaveTypeEnum>))]
public JobSaveTypeEnum SaveType { get; set; }
Property Value
|
Edit this page
View Source
Time
Declaration
public DateTime Time { get; set; }
Property Value
Methods
|
Edit this page
View Source
AddPriorityFileExtension(string)
Declaration
public void AddPriorityFileExtension(string extension)
Parameters
Type |
Name |
Description |
string |
extension |
|
|
Edit this page
View Source
HasPendingPriorityFiles()
Declaration
public bool HasPendingPriorityFiles()
Returns
|
Edit this page
View Source
OnPropertyChanged(string)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
|
Edit this page
View Source
RemovePriorityFileExtension(string)
Declaration
public void RemovePriorityFileExtension(string extension)
Parameters
Type |
Name |
Description |
string |
extension |
|
|
Edit this page
View Source
ToString()
Returns a string representation of the job.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A formatted string describing the job.
|
Overrides
Events
|
Edit this page
View Source
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Implements