Пример #1
0
        public static Dictionary <Model.VersionsSupported, Schema.Model.VersionSchema> LoadAll()
        {
            var VersionSchemaDictionary = new Dictionary <Model.VersionsSupported, Schema.Model.VersionSchema>();

            foreach (Model.VersionsSupported version in Enum.GetValues(typeof(Model.VersionsSupported)))
            {
                if (version != Model.VersionsSupported.NotSupported)
                {
                    _VersionCurrent = version;
                    VersionSchemaDictionary.Add(_VersionCurrent, LoadVersion());
                }
            }
            return(VersionSchemaDictionary);
        }
Пример #2
0
        public static Schema.Model.VersionSchema LoadSingleMessage(Model.VersionsSupported version, string MessageType, string MessageEvent)
        {
            var VersionSchemaDictionary = new Dictionary <Model.VersionsSupported, Schema.Model.VersionSchema>();

            _VersionCurrent = version;
            VersionSchemaDictionary.Add(_VersionCurrent, LoadVersion(MessageType, MessageEvent));
            if (VersionSchemaDictionary.Count != 0)
            {
                return(VersionSchemaDictionary[version]);
            }
            else
            {
                return(null);
            }
        }
Пример #3
0
 public DataTypeParser(Model.VersionsSupported version)
 {
     Version = version;
 }
Пример #4
0
 public static void LoadAnotherMessage(Schema.Model.VersionSchema VersionSchema, string MessageType, string MessageEvent)
 {
     _VersionCurrent = VersionSchema.Version;
     LoadAnotherMessageForSameVersion(VersionSchema, MessageType, MessageEvent);
 }