Show / Hide Table of Contents

Class JobModel

Represents a backup job that can be observed for changes.

Inheritance
object
JobModel
Implements
INotifyPropertyChanged
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: EasySave_Project.Model
Assembly: .dll
Syntax
public class JobModel : INotifyPropertyChanged

Constructors

| Edit this page View Source

JobModel()

Mandatory constructor for .NET JSON Deserialization use

Declaration
public JobModel()
| 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
Type Description
bool
| Edit this page View Source

CancelJobButton

Declaration
public string CancelJobButton { get; }
Property Value
Type Description
string
| Edit this page View Source

FileInPending

Declaration
public FileInPendingJobDTO FileInPending { get; set; }
Property Value
Type Description
FileInPendingJobDTO
| Edit this page View Source

FileSize

Declaration
public string FileSize { get; set; }
Property Value
Type Description
string
| Edit this page View Source

FileSource

Declaration
public string FileSource { get; set; }
Property Value
Type Description
string
| Edit this page View Source

FileTarget

Declaration
public string FileTarget { get; set; }
Property Value
Type Description
string
| Edit this page View Source

FileTransferTime

Declaration
public string FileTransferTime { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Id

Declaration
public int Id { get; set; }
Property Value
Type Description
int
| Edit this page View Source

IsCheckBoxVisibleAndEnable

Declaration
public bool IsCheckBoxVisibleAndEnable { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsJobInPending

Declaration
public bool IsJobInPending { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsJobInPendingOrActive

Declaration
public bool IsJobInPendingOrActive { get; }
Property Value
Type Description
bool
| Edit this page View Source

LastFullBackupPath

Declaration
public string LastFullBackupPath { get; set; }
Property Value
Type Description
string
| Edit this page View Source

LastSaveDifferentialPath

Declaration
public string LastSaveDifferentialPath { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
string
| Edit this page View Source

PendingJobButton

Declaration
public string PendingJobButton { get; }
Property Value
Type Description
string
| Edit this page View Source

PriorityFileExtensions

Declaration
public ObservableCollection<string> PriorityFileExtensions { get; set; }
Property Value
Type Description
ObservableCollection<string>
| Edit this page View Source

ResumeJobButton

Declaration
public string ResumeJobButton { get; }
Property Value
Type Description
string
| Edit this page View Source

SaveState

Declaration
[JsonConverter(typeof(EnumConverterUtil.JsonEnumConverter<JobSaveStateEnum>))]
public JobSaveStateEnum SaveState { get; set; }
Property Value
Type Description
JobSaveStateEnum
| Edit this page View Source

SaveType

Declaration
[JsonConverter(typeof(EnumConverterUtil.JsonEnumConverter<JobSaveTypeEnum>))]
public JobSaveTypeEnum SaveType { get; set; }
Property Value
Type Description
JobSaveTypeEnum
| Edit this page View Source

Time

Declaration
public DateTime Time { get; set; }
Property Value
Type Description
DateTime

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
Type Description
bool
| 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
object.ToString()

Events

| Edit this page View Source

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler

Implements

INotifyPropertyChanged
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX