-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImportLogsCommand.cs
More file actions
34 lines (30 loc) · 933 Bytes
/
Copy pathImportLogsCommand.cs
File metadata and controls
34 lines (30 loc) · 933 Bytes
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
namespace S7Tools.Core.Commands;
/// <summary>
/// Options for importing logs.
/// </summary>
public class ImportLogsOptions
{
/// <summary>
/// Gets or sets the file path to import from.
/// </summary>
public string FilePath { get; set; } = string.Empty;
}
/// <summary>
/// Command to import logs from a file.
/// </summary>
public class ImportLogsCommand : ICommand<CommandResult>
{
/// <summary>
/// Gets the import options.
/// </summary>
public ImportLogsOptions Options { get; }
/// <summary>
/// Gets the unique identifier for this command type.
/// </summary>
public string CommandType => nameof(ImportLogsCommand);
/// <summary>
/// Initializes a new instance of the <see cref="ImportLogsCommand"/> class.
/// </summary>
/// <param name="options">The import options.</param>
public ImportLogsCommand(ImportLogsOptions options) => Options = options;
}