public function cadastrar($token, $idTo, $mensagem, $latitude, $longitude)
 {
     $msg = new Mensagem();
     $local = new Local();
     $local->setLatitude($latitude);
     $local->setLongitude($longitude);
     $msg->setIdTo($idTo);
     $msg->setToken($token);
     $msg->setMensagem($mensagem);
     $id = $this->daoLoc->cadastrar($local);
     if ($id == false) {
         return false;
     }
     $msg->setIdLoc($id);
     $valor = 0;
     return $this->daoMsg->cadastrar($msg, $valor);
 }