Esempio n. 1
0
        private void AddNetShieldSettings()
        {
            var ns = new CompoundSetting(nameof(IAppSettings.NetShieldEnabled), null, _appSettings);

            ns.Add(new SingleSetting(nameof(IAppSettings.NetShieldMode), ns, _appSettings));

            _settings.Add(ns);
        }
Esempio n. 2
0
        public List <Setting> Build()
        {
            _settings = new List <Setting>
            {
                new SingleSetting(nameof(IAppSettings.KillSwitch), null, _appSettings),
                new SingleSetting(nameof(IAppSettings.OvpnProtocol), null, _appSettings),
                new CustomDnsSetting(nameof(IAppSettings.CustomDnsEnabled), null, _appSettings)
            };

            var st = new CompoundSetting(nameof(IAppSettings.SplitTunnelingEnabled), null, _appSettings);

            st.Add(new SplitTunnelModeSetting(nameof(IAppSettings.SplitTunnelMode), st, _appSettings));

            _settings.Add(st);

            AddNetShieldSettings();

            return(_settings);
        }
Esempio n. 3
0
        public List <Setting> Build()
        {
            _settings = new List <Setting>
            {
                new SingleSetting(nameof(IAppSettings.OvpnProtocol), null, _appSettings),
                new SingleSetting(nameof(IAppSettings.PortForwardingEnabled), null, _appSettings),
                new CustomDnsSetting(nameof(IAppSettings.CustomDnsEnabled), null, _appSettings)
            };

            var st = new CompoundSetting(nameof(IAppSettings.SplitTunnelingEnabled), null, _appSettings);

            st.Add(new SplitTunnelModeSetting(nameof(IAppSettings.SplitTunnelMode), st, _appSettings));

            var ns = new CompoundSetting(nameof(IAppSettings.NetShieldEnabled), null, _appSettings);

            ns.Add(new SingleSetting(nameof(IAppSettings.NetShieldMode), ns, _appSettings));

            _settings.Add(st);
            _settings.Add(ns);

            return(_settings);
        }