sftp settings premakjen

This commit is contained in:
David Štaleker
2024-09-11 06:07:11 +02:00
parent 1dc48d2d85
commit 34a081e8f9
4 changed files with 8 additions and 50 deletions

View File

@@ -13,31 +13,9 @@ namespace InfosysPublisher.Classes
{
public class Application
{
//SQL strežniki
//Privatna polja
[JsonProperty] private string _sftpUsername;
[JsonProperty] private string _sftpPassword;
//Javna polja
public string SftpServerAddress { get; set; }
public int SftpPort { get; set; }
public int BuildSeconds { get; set; }
public string LastFolder { get; set; }
[JsonIgnore]
public string SftpUsername
{
get => _sftpUsername.AesDecrypt();
set => _sftpUsername = value.AesEncrypt();
}
[JsonIgnore]
public string SftpPassword
{
get => _sftpPassword.AesDecrypt();
set => _sftpPassword = value.AesEncrypt();
}
public void Save(string iPath)
{
var json = JsonConvert.SerializeObject(this);