-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(Config.cs): Usage of CopyIO * feat(Program.cs): Adaptation to the new system
- Loading branch information
Showing
4 changed files
with
81 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Copy.Types | ||
{ | ||
/// <summary> | ||
/// Input/output for copying files. | ||
/// </summary> | ||
public class CopyIO | ||
{ | ||
/// <summary> | ||
/// Create a new instance of the class. | ||
/// </summary> | ||
/// <param name="client">Client to use.</param> | ||
/// <param name="path">Path to the folder.</param> | ||
public CopyIO(string client, string path) | ||
{ | ||
Client = client; | ||
Path = path; | ||
} | ||
|
||
/// <summary> | ||
/// Client to use. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "Client", Required = Required.Always)] | ||
public string Client { get; set; } | ||
/// <summary> | ||
/// Path to the folder. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "Path", Required = Required.Always)] | ||
public string Path { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters