import baiduDH from "./sp/baidu.js";
import tencentDH from "./sp/tencent.js";

class DHFactory {
  constructor(sp) {
    this.policy = sp || "baidu";
  }

  static getInstance(policy, options) {
    switch (policy) {
      case "baidu":
        return new baiduDH(options);
      case "tencent":
        return new tencentDH(options);
      default:
        return new baiduDH(options);
    }
  }
}

export default DHFactory;
