1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PhihongSystemID
- {
- public enum ConnectorType
- {
- Unknown, None, CHadeMO, CCS1, CCS2, GBT, AC, ChaoJi, Wireless
- }
- public static class ConnectorTypeExtention
- {
- public static bool GetIsAc(this ConnectorType type)
- {
- if (type == ConnectorType.GBT || type == ConnectorType.AC)
- return true;
- return false;
- }
- public static bool GetIsCCS(this ConnectorType type)
- {
- if (type == ConnectorType.CCS1 ||
- type == ConnectorType.CCS2)
- return true;
- return false;
- }
- public static bool GetIsCHadeMO(this ConnectorType type)
- {
- if (type == ConnectorType.CHadeMO)
- return true;
- return false;
- }
- }
- }
|