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.

11 lines
342 B

  1. import { Model } from "./AbstractModel";
  2. import { UserModel } from "./UserModel";
  3. export class ModelFactory {
  4. static createModel(modelName: string): Model {
  5. switch (modelName) {
  6. // case "USER": return new UserModel();
  7. // break;
  8. default: throw new Error("Invalid model name");
  9. }
  10. }
  11. }