Chatto/src/main/frontend/chat/model/ModelFactory.ts
2020-07-07 22:11:14 +05:30

12 lines
342 B
TypeScript

import { Model } from "./AbstractModel";
import { UserModel } from "./UserModel";
export class ModelFactory {
static createModel(modelName: string): Model {
switch (modelName) {
// case "USER": return new UserModel();
// break;
default: throw new Error("Invalid model name");
}
}
}