コード例 #1
0
 /**
  * @return int
  */
 private function _getOnlineStatus()
 {
     $connected = 1;
     if ($this->deviceRepo->getOnline()) {
         //dd("mother f****r");
         ///We are online but may not be paired//
         $connected = 2;
         if ($surl = $this->_getSlideShowUrl()) {
             $connected = 3;
         }
     } else {
         $connected = 1;
     }
     return $connected;
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $devicerepo = new DeviceRepository();
     return $this->respondWithData(array("jumpUrl" => $devicerepo->readyToServe()));
 }