public GetConfigurationResponse GetConfiguration() { ToastHelper.PopToast("Get configuration"); var response = new GetConfigurationResponse(); response.FirewallEnabled = FirewallHelper.IsEnabled(); return(response); }
public ConfigureResponse Configure(ConfigureRequest request) { ToastHelper.PopToast("Configure"); if (request.FirewallEnabled) { FirewallHelper.EnableFirewall(); } else { FirewallHelper.DisableFirewall(); } var response = new ConfigureResponse(); response.FirewallEnabled = FirewallHelper.IsEnabled(); return(response); }