A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
336 B

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");
}
}
}