예제 #1
0
        public AccountConfig GetDefaultConfig()
        {
            var cfg = new pjsua_acc_config();

            PJSUA_DLL.Accounts.pjsua_acc_config_default(cfg);
            return(_mapper.Map(cfg, new AccountConfig()));
        }
예제 #2
0
 public int AddAccountAndGetId(AccountConfig accCfg, bool isDefault)
 {
     int id = NativeConstants.PJSUA_INVALID_ID;
     var cfg = new pjsua_acc_config();
     PJSUA_DLL.Accounts.pjsua_acc_config_default(cfg);
     cfg = _mapper.Map(accCfg, cfg);
     Helper.GuardError(PJSUA_DLL.Accounts.pjsua_acc_add(cfg, Convert.ToInt32(isDefault), ref id));
     return id;
 }
예제 #3
0
        public int AddAccountAndGetId(AccountConfig accCfg, bool isDefault)
        {
            int id  = NativeConstants.PJSUA_INVALID_ID;
            var cfg = new pjsua_acc_config();

            PJSUA_DLL.Accounts.pjsua_acc_config_default(cfg);
            cfg = _mapper.Map(accCfg, cfg);
            Helper.GuardError(PJSUA_DLL.Accounts.pjsua_acc_add(cfg, Convert.ToInt32(isDefault), ref id));
            return(id);
        }
예제 #4
0
 public AccountConfig Map(pjsua_acc_config cfg, AccountConfig config)
 {
     return(_engine.Map(cfg, config));
 }
예제 #5
0
 public pjsua_acc_config Map(AccountConfig config, pjsua_acc_config cfg)
 {
     return(_engine.Map(config, cfg));
 }
예제 #6
0
 public AccountConfig Map(pjsua_acc_config cfg, AccountConfig config)
 {
     return _engine.Map(cfg, config);
 }
예제 #7
0
 public pjsua_acc_config Map(AccountConfig config, pjsua_acc_config cfg)
 {
     return _engine.Map(config, cfg);
 }
예제 #8
0
 public AccountConfig GetDefaultConfig()
 {
     var cfg = new pjsua_acc_config();
     PJSUA_DLL.Accounts.pjsua_acc_config_default(cfg);
     return _mapper.Map(cfg, new AccountConfig());
 }