/// <summary>
        /// Returns the stept type
        /// </summary>
        /// <param name="nextStep">Next Step</param>
        /// <returns>Step Type</returns>
        private string GetStepType(ExportDialogData nextStep)
        {
            if (nextStep == null)
            {
                return(string.Empty);
            }

            return(nextStep.GetNodeType().ToLowerInvariant());
        }
Пример #2
0
        /// <summary>
        /// Returns the node type of dailog step
        /// </summary>
        /// <param name="dialogData">Dialog data to check</param>
        /// <param name="errorCollection">Error Collection to send errors to</param>
        /// <returns>Node type</returns>
        private string GetNodeType(ExportDialogData dialogData, ExportPlaceholderErrorCollection errorCollection)
        {
            string nodeType = dialogData.GetNodeType();

            if (!string.IsNullOrEmpty(nodeType))
            {
                return(nodeType);
            }

            errorCollection.AddUnknownDialogStepError();
            return("unknown");
        }