using System; using System.Collections.Generic; using Sarand.Net.Standard.Base.App; using Sarand.Net.Standard.Base.Bus; using Sarand.Net.Standard.Base.Core; namespace Sarand.Net.Standard.Base.Interfaces { //======================================================================= public abstract partial class SaInterfaceMgr : SacsItemMgr { //------------------------------------------------------------------- // Data members. private static readonly List interfaceCategories = SacsSystem.GetCodesOfType(SaSysCodeType.InterfaceCategory); private static readonly List processDirections = SacsSystem.GetCodesOfType(SaSysCodeType.InterfaceProcessDirection); private static readonly List messageLevels = SacsSystem.GetCodesOfType(SaSysCodeType.MessageLevel); //------------------------------------------------------------------- // Static initialisation. static SaInterfaceMgr () { } //------------------------------------------------------------------- // Construction. protected SaInterfaceMgr (SaInterfaceConsole interfaceConsole) { InterfaceConsole = interfaceConsole; } //------------------------------------------------------------------- // Properties. protected SaInterfaceConsole InterfaceConsole { get; } protected static List InterfaceCategories { get { return new List(interfaceCategories); } } protected static List ProcessDirections { get { return new List(processDirections); } } protected static List MessageLevels { get { return new List(messageLevels); } } // Database. public abstract bool DatabaseIsValid { get; } public abstract bool CanUpdateDatabase { get; } // Alternate 'Warning' message level code (pre 2014 Sapphire). protected static String MessageTypeWarningAlt { get; } = "WAR"; //------------------------------------------------------------------- // Utilities. public abstract bool ColumnExists (SaInterfaceDbDfn.ColumnIdx columnIdx); //------------------------------------------------------------------- } //======================================================================= }