public override void Construct() { _type = (SftpActionType)Enum.Parse(typeof(SftpActionType), Details[0]); _sftpActionData = new SftpActionData() { Host = Details[1], UserName = Details[2], Password = Details[3], Command1 = Details[4], Command2 = Details[5] }; }
public SftpAction(SftpActionType type, SftpActionData actionData) : base(Enums.ActionTypeId.Sftp) { _sftpActionData = actionData; _type = type; Details.Add(type.ToString()); Details.Add(_sftpActionData.Host); //1 Details.Add(_sftpActionData.UserName); //2 Details.Add(_sftpActionData.Password); //3 Details.Add(_sftpActionData.Command1); //4 Details.Add(_sftpActionData.Command2); //4 }