1234567891011121314151617181920212223242526272829303132333435 |
- using FlutterCodeGenerator.Map.Interface;
- using FlutterCodeGenerator.ModelTypes;
- using System.Collections.Generic;
- namespace FlutterCodeGenerator.Model
- {
- internal class GenerateDataCache
- {
- private static GenerateDataCache _instance;
- private IServiceMap _currentServiceMap;
- public static GenerateDataCache Instance => _instance ?? (_instance = new GenerateDataCache());
- public Dictionary<ComplexModelType, string> AlreadyGeneratedList { get; }
- public Dictionary<string, Dictionary<ModelType, int>> ConflictModelTypeList { get; }
- public GenerateDataCache()
- {
- AlreadyGeneratedList = new Dictionary<ComplexModelType, string>();
- ConflictModelTypeList = new Dictionary<string, Dictionary<ModelType, int>>();
- }
- public void SetCurrentServiceMap(IServiceMap serviceMap)
- {
- _currentServiceMap = serviceMap;
- }
- public IServiceMap GetCurrentServiceMap()
- {
- return _currentServiceMap;
- }
- }
- }
|