Back to project page wifi-auto-forget.
The source code is released under:
GNU General Public License
If you think the Android project wifi-auto-forget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cebesius.wifiautoforget.mvp; /* w ww.jav a2 s . c om*/ import com.cebesius.wifiautoforget.domain.AutoForgetWifi; /** * Presenter for Add Wifi flow */ public class AddWifiPresenter { private final AddWifiModel model; private final AddWifiView view; public AddWifiPresenter(AddWifiModel model, AddWifiView view) { this.model = model; this.view = view; } public void addNetwork(AutoForgetWifi autoForgetWifi) { try { model.addNetwork(autoForgetWifi); view.onAddWifiSuccess(autoForgetWifi); model.incrementAddWifiNotificationActionCount(); model.setAddWifiNotificationTypeUsed(autoForgetWifi.getBehavior()); } catch (Exception e) { view.onAddWifiFailure(autoForgetWifi); } } }