sftp settings premakjen
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user