Ejemplo n.º 1
0
 public void modify(AccountConfig cfg)
 {
     pjsua2PINVOKE.Account_modify(swigCPtr, AccountConfig.getCPtr(cfg));
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public Account(AccountConfig prmAccountConfig)
 {
     accountConfig  = prmAccountConfig;
     logger         = new Logger();
     game           = new GameClass(this);
     fightExtension = new PeleaExtensiones(this);
     script         = new ManejadorScript(this);
 }
Ejemplo n.º 3
0
 public void create(AccountConfig cfg)
 {
     pjsua2PINVOKE.Account_create__SWIG_1(swigCPtr, AccountConfig.getCPtr(cfg));
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
 public Account(AccountConfig prmAccountConfig)
 {
     accountConfig  = prmAccountConfig;
     Logger         = new Logger();
     game           = new GameClass(this);
     fightExtension = new FightExtensions(this);
     script         = new ScriptManager(this);
 }
Ejemplo n.º 5
0
        public static void SearchOrder(long orderId)
        {
            var           userName = "******";
            AccountConfig account  = AccountConfigUtils.GetAccountConfig(userName);

            PlatformApi api = PlatformApi.GetInstance(userName);

            var orderDetail = api.QueryOrderDetail(orderId);

            Console.WriteLine(orderDetail.Status);
            Console.WriteLine(orderDetail.Data.state);
            if (orderDetail.Status == "ok" && orderDetail.Data.state == "filled")
            {
                Console.WriteLine(orderDetail.Data.price);
                Console.WriteLine(orderDetail.Data.id);
                Console.WriteLine(orderDetail.Data.symbol.Replace("usdt", ""));
                Console.WriteLine(orderDetail.Data.amount);

                if (new PigMoreDao().GetByBOrderId(orderId) != null)
                {
                    Console.WriteLine("订单存在");
                    return;
                }

                new PigMoreDao().CreatePigMore(new PigMore()
                {
                    Name        = orderDetail.Data.symbol.Replace("usdt", ""),
                    AccountId   = account.MainAccountId,
                    UserName    = account.UserName,
                    FlexPercent = (decimal)1.04,

                    BQuantity          = orderDetail.Data.amount,
                    BOrderP            = orderDetail.Data.price,
                    BDate              = DateTime.Now,
                    BOrderResult       = "",
                    BState             = StateConst.Submitting,
                    BTradeP            = 0,
                    BOrderId           = orderId,
                    BFlex              = "",
                    BMemo              = "",
                    BOrderDetail       = "",
                    BOrderMatchResults = "",

                    SOrderId           = 0,
                    SOrderResult       = "",
                    SDate              = DateTime.MinValue,
                    SFlex              = "",
                    SMemo              = "",
                    SOrderDetail       = "",
                    SOrderMatchResults = "",
                    SOrderP            = 0,
                    SQuantity          = 0,
                    SState             = "",
                    STradeP            = 0,
                });
            }
        }
Ejemplo n.º 6
0
        public CampfireChatApiAdapter()
        {
            AccountConfig config = new AccountConfig {
                AccountName = "pebbleit", AuthToken = "fee994663c634db07ea450f0b1de0cdbbc583d61"
            };

            _room              = new CampfireRoom(config, 536178, true);
            _room.DataEmitted += _room_DataEmitted;
        }
Ejemplo n.º 7
0
        private void saveBtn_Click(object sender, EventArgs e)
        {
            String        filePath    = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\assets\\configs\\config.txt";
            AccountConfig firebaseCfg = new AccountConfig(apiKeyTxt.Text, bucketTxt.Text, emailTxt.Text, passwordTxt.Text, folderTxt.Text, this.outputFolderTxt.Text);

            configStr = Newtonsoft.Json.JsonConvert.SerializeObject(firebaseCfg);
            File.WriteAllText(filePath, configStr);
            MessageBox.Show("Save config is successfully!!");
        }
Ejemplo n.º 8
0
        public static ManagementResource.ExperimentsResource.ListRequest List(
            this ManagementResource.ExperimentsResource experiments, AccountConfig config)
        {
            var accountId     = config.GoogleAccountId;
            var webPropertyId = config.GoogleWebPropertyId;
            var profileId     = config.GoogleProfileId;

            return(experiments.List(accountId, webPropertyId, profileId));
        }
Ejemplo n.º 9
0
        public void Save()
        {
            if (Account1Colour == Brushes.Green)
            {
                var accountConfig = new AccountConfig()
                {
                    EmailAddress = Account1,
                    DisplayName  = Account1Displayname,
                    DisplayIndex = 1,
                    IsConfigured = true,
                    SearchTag    = this.SearchTag
                };

                Bootstrapper.ApplicationConfiguration.Accounts.Add(accountConfig);
            }

            if (Account2Colour == Brushes.Green)
            {
                var accountConfig = new AccountConfig()
                {
                    EmailAddress = Account2,
                    DisplayName  = Account2Displayname,
                    DisplayIndex = 2,
                    IsConfigured = true,
                    SearchTag    = this.SearchTag
                };

                Bootstrapper.ApplicationConfiguration.Accounts.Add(accountConfig);
            }

            if (Account3Colour == Brushes.Green)
            {
                var accountConfig = new AccountConfig()
                {
                    EmailAddress = Account3,
                    DisplayName  = Account3Displayname,
                    DisplayIndex = 3,
                    IsConfigured = true,
                    SearchTag    = this.SearchTag
                };

                Bootstrapper.ApplicationConfiguration.Accounts.Add(accountConfig);
            }

            if (RunAtStartup)
            {
                Logger.Log("Adding run at startup shortcut", "Verbose");
                OCUpdateManager.RunAtStartup();
            }

            Bootstrapper.ApplicationConfiguration.SaveChanges();
            Complete = true;

            System.Windows.Forms.MessageBox.Show("Configuration Updated. Please launch application from desktop shortcut.", "Configuration Saved", (MessageBoxButtons)MessageBoxButton.OK, MessageBoxIcon.Information);

            ExecuteCancelCommand();
        }
Ejemplo n.º 10
0
        public override Task <ActionResult> IndexAsync(AuthorizationCodeResponseUrl authorizationCode, CancellationToken taskCancellationToken)
        {
            var stateWithoutRandomToken = authorizationCode.State.Substring(0, authorizationCode.State.Length - AuthorizationCodeWebApp.StateRandomLength);
            var uri       = new Uri(stateWithoutRandomToken);
            var profileId = uri.ParseQueryString().Get("profileId");
            var config    = AccountConfig.GetByUniqueId(profileId);

            _flowData = new uSplitFlowMetadata(config);
            return(base.IndexAsync(authorizationCode, taskCancellationToken));
        }
Ejemplo n.º 11
0
        public async Task <IHttpActionResult> SetSegmentAsync(string profileId, [FromBody] SetSegmentRequest request)
        {
            await ExecuteAsync(new SetSegment(AccountConfig.GetByUniqueId(profileId)) {
                ExperimentId = request.ExperimentId,
                ProviderKey  = request.ProviderKey,
                Value        = request.Value
            });

            return(Ok());
        }
Ejemplo n.º 12
0
        public async Task <HttpResponseMessage> AddVariationAsync(string profileId, [FromBody] AddVariationRequest request)
        {
            var variationDetails = await ExecuteAsync(new AddVariation(AccountConfig.GetByUniqueId(profileId))
            {
                GoogleExperimentId = request.ExperimentId,
                NodeId             = request.NodeId
            });

            return(CreateResponse(variationDetails));
        }
Ejemplo n.º 13
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);
        }
Ejemplo n.º 14
0
        public async Task <HttpResponseMessage> StopExperimentAsync(string id, string profileId)
        {
            var experiment = await ExecuteAsync(new StopExperiment(AccountConfig.GetByUniqueId(profileId), id));

            var details = await ExecuteAsync(new GetExperimentDetails()
            {
                Experiment = experiment
            });

            return(CreateResponse(details));
        }
Ejemplo n.º 15
0
        protected string GetAccountId(string typeName)
        {
            string        longAccountId = string.Empty;
            AccountConfig acConfig      = AccountConfigList.Find(x => x.Type == typeName && x.Name == ShortCode + "_" + typeName);

            if (acConfig != null)
            {
                longAccountId = acConfig.Id;
            }

            return(longAccountId);
        }
Ejemplo n.º 16
0
        protected string GetAccountType(string id)
        {
            string        type     = string.Empty;
            AccountConfig acConfig = AccountConfigList.Find(x => x.Id == id);

            if (acConfig != null)
            {
                type = acConfig.Type;
            }

            return(type);
        }
 private void EditAccount(ProfileSettings charSettings)
 {
     if (charSettings != null)
     {
         var ani = new DoubleAnimation(255, new Duration(TimeSpan.Parse("0:0:0.4")))
         {
             DecelerationRatio = 0.7
         };
         AccountConfigGrid.BeginAnimation(WidthProperty, ani);
         AccountConfig.EditAccount(charSettings);
     }
 }
Ejemplo n.º 18
0
 public static UberChatClient Create(AccountConfig config, RiotAccount account)
 {
   Uri uri = new Uri(config.Endpoints.Chat.Uri);
   UberChatClient uberChatClient1 = new UberChatClient(account);
   uberChatClient1.Host = uri.Host;
   uberChatClient1.Port = uri.Port;
   uberChatClient1.Server = "pvp.net";
   uberChatClient1.Username = config.Username;
   uberChatClient1.Password = "******" + config.Password;
   UberChatClient uberChatClient2 = uberChatClient1;
   uberChatClient2.ConferenceServers.AddRange((IEnumerable<string>) config.Endpoints.Chat.Conference);
   return uberChatClient2;
 }
Ejemplo n.º 19
0
        public static void SearchBuyOrder(long orderId)
        {
            var           userName = "******";
            AccountConfig account  = AccountConfigUtils.GetAccountConfig(userName);

            PlatformApi api = PlatformApi.GetInstance(userName);

            var orderDetail = api.QueryOrderDetail(orderId);

            Console.WriteLine(orderDetail.Status);
            Console.WriteLine(orderDetail.Data.state);
            if (orderDetail.Status == "ok" && orderDetail.Data.state == "filled")
            {
                Console.WriteLine(JsonConvert.SerializeObject(orderDetail));
                Console.WriteLine(orderDetail.Data.id);
                Console.WriteLine(orderDetail.Data.symbol.Replace("usdt", ""));
                Console.WriteLine(orderDetail.Data.amount);

                if (orderDetail.Data.type != "buy-limit")
                {
                    Console.WriteLine(orderDetail.Data.type);
                    Thread.Sleep(1000 * 60 * 5);
                }

                if (new DogMoreBuyDao().GetByBuyOrderId(orderId) != null)
                {
                    Console.WriteLine("订单存在");
                    return;
                }

                new DogMoreBuyDao().CreateDogMoreBuy(new DogMoreBuy()
                {
                    SymbolName = orderDetail.Data.symbol.Replace("usdt", ""),
                    //QuoteCurrency =
                    AccountId = account.MainAccountId,
                    UserName  = account.UserName,

                    BuyQuantity          = orderDetail.Data.amount,
                    BuyOrderPrice        = orderDetail.Data.price,
                    BuyDate              = DateTime.Now,
                    BuyOrderResult       = "",
                    BuyState             = StateConst.Submitting,
                    BuyTradePrice        = 0,
                    BuyOrderId           = orderId,
                    BuyMemo              = "",
                    BuyOrderDetail       = "",
                    BuyOrderMatchResults = "",
                    IsFinished           = false
                });
            }
        }
Ejemplo n.º 20
0
        private void CreateAccountPlayerAndConfig(IAccount account)
        {
            AccountConfig newAccountConfig = new AccountConfig(account);

            IEnumerable <IUIModule> uiModules = TemplateCache.GetAll <IUIModule>().Where(uim => uim.SystemDefault > 0);

            foreach (IUIModule module in uiModules)
            {
                newAccountConfig.UIModules = uiModules.Select(uim => new Tuple <IUIModule, int>(uim, uim.SystemDefault));
            }

            //Save the new config
            newAccountConfig.Save(account, StaffRank.Player);
        }
Ejemplo n.º 21
0
        public void Sip()
        {
            var sipUser   = "******";
            var sipSecret = "call199";
            var sipIp     = "192.168.1.130";

            try
            {
                // Create endpoint
                var ep = new Endpoint();
                ep.libCreate();
                // Initialize endpoint
                var epConfig = new EpConfig();
                ep.libInit(epConfig);
                // Create SIP transport. Error handling sample is shown
                TransportConfig sipTpConfig = new TransportConfig();
                sipTpConfig.port = 5060;
                ep.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_UDP, sipTpConfig);
                // Start the library
                ep.libStart();

                AccountConfig acfg = new AccountConfig();
                acfg.idUri = $"sip:{sipUser}@{sipIp}";
                acfg.regConfig.registrarUri = $"sip:{sipIp}";
                AuthCredInfo cred = new AuthCredInfo("DispexPhone", "*", sipUser, 0, sipSecret);
                acfg.sipConfig.authCreds.Add(cred);
                // Create the account
                var acc = new MyAccount();
                //acc.onRegStarted(new OnRegStartedParam());
                acc.create(acfg);

                // Here we don't have anything else to do..

                /* Explicitly delete the account.
                 * This is to avoid GC to delete the endpoint first before deleting
                 * the account.
                 */
                //acc.Dispose();

                // Explicitly destroy and delete endpoint
                //ep.libDestroy();
                //ep.Dispose();
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception: " + e.Message);
                return;
            }
        }
Ejemplo n.º 22
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomPullRequestHandler"/> class.
        /// </summary>
        /// <param name="accountConfig">The account configuration.</param>
        /// <param name="protocolPrefix">The protocol prefix.</param>
        /// <exception cref="ArgumentNullException">When <paramref name="accountConfig"/> or
        /// <paramref name="protocolPrefix"/> is <c>null</c>.
        /// </exception>
        public CustomPullRequestHandler(AccountConfig accountConfig, string protocolPrefix)
        {
            if (accountConfig == null)
            {
                throw new ArgumentNullException(nameof(accountConfig));
            }

            if (string.IsNullOrEmpty(protocolPrefix))
            {
                throw new ArgumentNullException(nameof(protocolPrefix));
            }

            m_protocolPrefix = protocolPrefix;
            m_config         = accountConfig;
        }
Ejemplo n.º 23
0
 private void LoadSetting()
 {
     try
     {
         String        filePath  = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\assets\\configs\\config.txt";
         string        configStr = File.ReadAllText(filePath);
         AccountConfig config    = Newtonsoft.Json.JsonConvert.DeserializeObject <AccountConfig>(configStr);
         this.folderTxt.Text       = config.FirebaseFolder;
         this.outputFolderTxt.Text = config.OutputFolder;
     }
     catch (Exception ex)
     {
         MessageBox.Show("Something wrong, Please make sure that the firebase account is configured", "Warning");
     }
 }
Ejemplo n.º 24
0
 public static UberChatClient Create(AccountConfig config, RiotAccount account)
 {
     Uri uri = new Uri(config.Endpoints.Chat.Uri);
     UberChatClient uberChatClient = new UberChatClient(account)
     {
         Host = uri.Host,
         Port = uri.Port,
         Server = "pvp.net",
         Username = config.Username,
         Password = string.Concat("AIR_", config.Password)
     };
     UberChatClient uberChatClient1 = uberChatClient;
     uberChatClient1.ConferenceServers.AddRange(config.Endpoints.Chat.Conference);
     return uberChatClient1;
 }
Ejemplo n.º 25
0
        public SteamLoginHandler(AccountConfig steamAccount, SteamClient client, CallbackManager manager)
        {
            _steamAccount = steamAccount;
            _client       = client;
            _sUser        = _client.GetHandler <SteamUser>();

            _loginTcs = new TaskCompletionSource <EResult>();

            manager.Subscribe <SteamClient.ConnectedCallback>(OnConnected);
            manager.Subscribe <SteamClient.DisconnectedCallback>(OnDisconnected);
            manager.Subscribe <SteamUser.LoggedOnCallback>(OnLoggedOn);
            manager.Subscribe <SteamUser.LoggedOffCallback>(OnLoggedOff);
            manager.Subscribe <SteamUser.UpdateMachineAuthCallback>(OnMachineAuth);
            manager.Subscribe <SteamUser.LoginKeyCallback>(OnKeyCallback);
        }
Ejemplo n.º 26
0
        public Session(AccountConfig account)
        {
            if (account.Username.Length > 16)
            {
                throw new ArgumentException("Account username must be 16 characters or less.");
            }

            if (account.Password.Length > 20)
            {
                throw new ArgumentException("Account password must be 20 characters or less.");
            }

            _account = account;
            _crypto  = new AesCrypto(HexUtil.HexToBytes(_account.AesKey));
            _client  = new TcpClient();
        }
Ejemplo n.º 27
0
        public async Task <ActionResult> ReauthorizeAsync(string originalUrl, string profileId, CancellationToken cancellationToken)
        {
            var config = AccountConfig.GetByUniqueId(profileId);
            var flow   = uSplitAuthorizationCodeFlow.GetInstance(config);

            if (await flow.IsConnected(cancellationToken))
            {
                await flow.DeleteTokenAsync(Constants.Google.SystemUserId, cancellationToken);
            }

            return(RedirectToAction(nameof(AuthorizeAsync), new
            {
                originalUrl,
                profileId
            }));
        }
Ejemplo n.º 28
0
        private static Initializer CreateFlowInitializer(AccountConfig config)
        {
            DictionaryUtils uDic      = new DictionaryUtils();
            var             dictItems = uDic.GetDictionaryItemsSimple();

            return(new Initializer
            {
                ClientSecrets = new ClientSecrets
                {
                    ClientId = WebConfigurationManager.AppSettings[Constants.AppSettings.GoogleClientId] ?? dictItems.Where(x => x.Key == Constants.AppSettings.GoogleClientId).FirstOrDefault()?.Value,
                    ClientSecret = WebConfigurationManager.AppSettings[Constants.AppSettings.GoogleClientSecret] ?? dictItems.Where(x => x.Key == Constants.AppSettings.GoogleClientSecret).FirstOrDefault()?.Value
                },
                Scopes = new[] { AnalyticsService.Scope.AnalyticsEdit },
                DataStore = new FileDataStore(GetStoragePath(config), true),
                UserDefinedQueryParams = new [] { new KeyValuePair <string, string>("testkey", "testvalue"), },
            });
        }
Ejemplo n.º 29
0
        public void Init()
        {
            //var sipUser = "******";
            //var sipSecret = "sipnetzerg";
            var sipUser   = "******";
            var sipSecret = "call199";

            Messages += $"---------------------{DateTime.Now.ToString("T")}---------------------\r";
            Messages += "Init Sip!\r";
            _endpoint = new Endpoint();
            _endpoint.libCreate();
            // Initialize endpoint
            var epConfig = new EpConfig();

            //epConfig.logConfig.consoleLevel = 4;
            _endpoint.libInit(epConfig);
            // Create SIP transport. Error handling sample is shown
            var sipTpConfig = new TransportConfig();

            sipTpConfig.port = 5060;
            //sipTpConfig.portRange = 10;
            _endpoint.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_UDP, sipTpConfig);
            // Start the library
            _endpoint.libStart();

            var acfg = new AccountConfig();

            acfg.idUri = $"sip:{sipUser}@{_sipIp}";
            acfg.regConfig.registrarUri = $"sip:{_sipIp}";
            var cred = new AuthCredInfo("DispexPhone", "*", sipUser, 0, sipSecret);

            acfg.sipConfig.authCreds.Add(cred);
            // Create the account
            _acc = new MyAccount();
            _acc.OnAccountRegState += OnAccountRegState;
            //_acc.onRegStarted(new OnRegStartedParam());
            _acc.create(acfg);


            var t = _endpoint.audDevManager().getDevCount();

            _endpoint.audDevManager().setPlaybackDev(0);
            _endpoint.audDevManager().setCaptureDev(1);
            _call              = new MyCall(_acc);
            _call.OnCallState += OnCallState;
        }
Ejemplo n.º 30
0
        public async Task <ActionResult> AuthorizeAsync(string originalUrl, string profileId, CancellationToken cancellationToken)
        {
            var config = AccountConfig.GetByUniqueId(profileId);
            var result = await new AuthorizationCodeMvcApp(this, new uSplitFlowMetadata(config)).AuthorizeAsync(cancellationToken);

            if (result.Credential == null)
            {
                //no token, lets go to Google
                return(new RedirectResult(result.RedirectUri));
            }

            //refresh the experiments cache
            await ExperimentsUpdater.Instance.UpdateExperimentsCacheAsync();

            //got a token, we can return back
            return(new RedirectResult(originalUrl));
        }
Ejemplo n.º 31
0
        static void Main(string[] args)
        {
            XmlConfigurator.Configure(new FileInfo("log4net.config"));
            ILog logger = LogManager.GetLogger("program");

            logger.Error("-------------------------- 软件启动 ---------------------------------");

            AccountConfig.init("lzq");

            Console.WriteLine($"{AccountConfig.mainAccountId}, {AccountConfig.accessKey}, {AccountConfig.secretKey}, {AccountConfig.sqlConfig}");

            Console.Read();
            //Test();


            Run();
        }
Ejemplo n.º 32
0
        public static AccountConfig GetNewAccountInfo(IWin32Window dialogOwner)
        {
            using (var dialog = new AccountConfigDialog())
            {
                if (dialog.ShowDialog(dialogOwner) == DialogResult.OK)
                {
                    var accountInfo = new AccountInfo(dialog.GetAccountType(), dialog.textBoxAccountName.Text,
                                                      dialog.textBoxInstituteName.Text, dialog.textBoxAccountName.Text, false);
                    var accountConfig = new AccountConfig(accountInfo);

                    return(accountConfig);
                }
                else
                {
                    return(null);
                }
            }
        }
Ejemplo n.º 33
0
 public RiotAccount Attach(AccountConfig config)
 {
   RiotAccount riotAccount = Enumerable.FirstOrDefault<RiotAccount>((IEnumerable<RiotAccount>) this.accounts, (Func<RiotAccount, bool>) (x =>
   {
     if (x.Username == config.Username)
       return x.RealmId == config.RealmId;
     else
       return false;
   }));
   if (riotAccount != null)
     return riotAccount;
   RiotAccount account = new RiotAccount(config)
   {
     CanConnect = true
   };
   account.ConnectAsync();
   this.accounts.Add(account);
   this.OnAccountAdded(account);
   return account;
 }
Ejemplo n.º 34
0
 public RiotAccount Attach(AccountConfig config)
 {
     RiotAccount riotAccount = this.accounts.FirstOrDefault<RiotAccount>((RiotAccount x) =>
     {
         if (x.Username != config.Username)
         {
             return false;
         }
         return x.RealmId == config.RealmId;
     });
     if (riotAccount != null)
     {
         return riotAccount;
     }
     RiotAccount riotAccount1 = new RiotAccount(config)
     {
         CanConnect = true
     };
     riotAccount1.ConnectAsync();
     this.accounts.Add(riotAccount1);
     this.OnAccountAdded(riotAccount1);
     return riotAccount1;
 }
Ejemplo n.º 35
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(AccountConfig obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 36
0
 public void create(AccountConfig cfg)
 {
     pjsua2PINVOKE.Account_create__SWIG_1(swigCPtr, AccountConfig.getCPtr(cfg));
     if (pjsua2PINVOKE.SWIGPendingException.Pending) throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 37
0
 public void create(AccountConfig cfg, bool make_default)
 {
     pjsua2PINVOKE.Account_create__SWIG_0(swigCPtr, AccountConfig.getCPtr(cfg), make_default);
     if (pjsua2PINVOKE.SWIGPendingException.Pending) throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 38
0
 public void modify(AccountConfig cfg)
 {
     pjsua2PINVOKE.Account_modify(swigCPtr, AccountConfig.getCPtr(cfg));
     if (pjsua2PINVOKE.SWIGPendingException.Pending) throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
 }