Use camel case everywhere
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-websocket-services / UIServiceFactory.ts
CommitLineData
4198ad5c 1import AbstractUIService from './AbstractUIService';
1f5df42a 2import { ProtocolVersion } from '../../types/UiProtocol';
f16356b9 3import UIService001 from './UIService001';
4198ad5c
JB
4import UIWebSocketServer from '../UIWebSocketServer';
5
6export default class UIServiceFactory {
7 private constructor() {
8 // This is intentional
9 }
10
11 public static getUIServiceImplementation(version: ProtocolVersion, uiWebSocketServer: UIWebSocketServer): AbstractUIService | null {
12 switch (version) {
13 case ProtocolVersion['0.0.1']:
f16356b9 14 return new UIService001(uiWebSocketServer);
4198ad5c
JB
15 default:
16 return null;
17 }
18 }
19}