1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Hotline.Configurations
- {
- public class AppConfiguration
- {
- public string AppScope { get; set; }
- public YiBinConfiguration YiBin { get; set; }
- public ZiGongConfiguration ZiGong { get; set; }
- public LuZhouConfiguration LuZhou { get; set; }
- public DefaultAppScopeConfiguration GetDefaultAppScopeConfiguration()
- {
- return AppScope switch
- {
- AppDefaults.AppScope.YiBin => YiBin,
- AppDefaults.AppScope.ZiGong => ZiGong,
- AppDefaults.AppScope.LuZhou => LuZhou,
- _ => throw new ArgumentOutOfRangeException()
- };
- }
- }
- public class YiBinConfiguration : DefaultAppScopeConfiguration
- {
- public AiQualityConfiguration AiQuality { get; set; }
- public AiVisitConfiguration AiVisit { get; set; }
- public EnterpriseConfiguration Enterprise { get; set; }
- }
- public class ZiGongConfiguration : DefaultAppScopeConfiguration
- {
- }
- public class LuZhouConfiguration : DefaultAppScopeConfiguration
- {
- }
- public abstract class DefaultAppScopeConfiguration
- {
- public string CallCenterType { get; set; }
- }
- }
|