示例#1
0
        private bool StoreRemoteSettings(NSString serverHost, NSNumber port, NSNumber priority, NSString config, NSNumber cpOn, NSNumber dlOn, NSString email)
        {
            if (_dbSettings == null)
            {
                _dbSettings = new RemoteDBSettings();
            }

            int  portInt     = port == null ? 0 : port.Int32Value;
            int  priorityInt = priority == null ? 0 : priority.Int32Value;
            bool result      = _dbSettings.UpdateRemoteSettings(serverHost, portInt, priorityInt, config, cpOn.Int32Value, dlOn.Int32Value, email);

            return(result);
        }