public static bool ShouldDefineSecurityProtocol(ControllerTypeEnum type) { switch (type) { case ControllerTypeEnum.COMPACK: case ControllerTypeEnum.MCF5235: case ControllerTypeEnum.MCF5208: case ControllerTypeEnum.SMARTPACK2: case ControllerTypeEnum.SMARTPACKS: case ControllerTypeEnum.SMARTPACK: return(true); case ControllerTypeEnum.ORION: default: return(false); } }
public static DataModelType GetDataModel(ControllerTypeEnum controllerType) { switch (controllerType) { case ControllerTypeEnum.COMPACK: case ControllerTypeEnum.SMARTPACK2: case ControllerTypeEnum.SMARTPACKS: case ControllerTypeEnum.SMARTPACK: case ControllerTypeEnum.MCF5235: case ControllerTypeEnum.MCF5208: return(DataModelType.EltekData); case ControllerTypeEnum.ORION: return(DataModelType.DeltaData); default: return(DataModelType.EltekData); } }