 import SlideMenuControllerSwift
 import Willow
 import ISHPullUp
+import ReachabilitySwift
 
 class MainViewController: ISHPullUpViewController, PullUpViewDelegate {
 

  override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    self.setNavigationBarItem()
  }

  override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.

    log.event("SlideMenuControllerDelegate: rightDidClose")
  }
}

extension MainViewController: NetworkStatusListener {

  func networkStatusDidChange(status: Reachability.NetworkStatus) {
    switch status {
    case .notReachable:
      debugPrint("MainViewController: Network became unreachable")
    case .reachableViaWiFi:
      debugPrint("MainViewController: Network reachable through WiFi")
    case .reachableViaWWAN:
      debugPrint("MainViewController: Network reachable through Cellular Data")
    }

    // Update any UI elements here (disable buttons, labels etc.)
  }
}
