feat: expand cockpit integrations and support workflows
Add Phoenix remote desktop, action connector, documentation engine, and gamification support. Refactor support-case processing and search/action UI, and update installer assets and dependencies.
This commit is contained in:
38
F4SD-ActionConnector/Models/ActionDefinitionBase.cs
Normal file
38
F4SD-ActionConnector/Models/ActionDefinitionBase.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using C4IT.XML;
|
||||
using F4SD.ActionConnector.Enumerations;
|
||||
using System;
|
||||
using System.Xml;
|
||||
using static C4IT.Logging.cLogManager;
|
||||
|
||||
namespace F4SD.ActionConnector.Models
|
||||
{
|
||||
public abstract class ActionDefinitionBase
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public abstract ActionType Type { get; }
|
||||
public bool AwaitResult { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
public string Description { get; set; }
|
||||
public bool IsValid { get; private protected set; }
|
||||
|
||||
protected ActionDefinitionBase(XmlElement xNode, cXmlParser parser)
|
||||
{
|
||||
try
|
||||
{
|
||||
Id = cXmlParser.GetStringFromXmlAttribute(xNode, "Id");
|
||||
AwaitResult = cXmlParser.GetBoolFromXmlAttribute(xNode, "AwaitResult");
|
||||
IsEnabled = cXmlParser.GetBoolFromXmlAttribute(xNode, "IsEnabled");
|
||||
|
||||
XmlNode descriptionNode = xNode.SelectSingleNode("Description");
|
||||
if (descriptionNode != null)
|
||||
Description = cXmlParser.GetInnerTextFromXmlElement(descriptionNode);
|
||||
|
||||
IsValid = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogException(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user