-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileOperationParams.cs
60 lines (54 loc) · 1.46 KB
/
FileOperationParams.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
namespace BackgroundJobs
{
internal enum FileOperationType
{
Copy,
Move,
Delete
}
/// <summary>
/// Contains parameters for file operations.
/// </summary>
internal class FileOperationParams : Tuple<string, string, string, FileOperationType>
{
/// <summary>
/// Initializes a new instance of the <see cref="FileOperationParams"/> class.
/// </summary>
public FileOperationParams(string source,
string destination,
string newName,
FileOperationType type)
: base(source, destination, newName, type)
{
}
/// <summary>
/// Gets the source file or directory path.
/// </summary>
public string Source
{
get { return Item1; }
}
/// <summary>
/// Gets the destination file or directory path.
/// </summary>
public string Destination
{
get { return Item2; }
}
/// <summary>
/// Gets the new name of the file or directory.
/// </summary>
public string NewName
{
get { return Item3; }
}
/// <summary>
/// Gets the type of the operation.
/// </summary>
public FileOperationType OperationType
{
get { return Item4; }
}
}
}