Ejemplo n.º 1
0
 /**
  * @Route("/get_user_notification")
  * @Method({"GET"})
  *
  * @return array
  */
 public function getUserNotifications()
 {
     $result['posts_timeline'] = $this->post_service->getNewPosts();
     $result['answers_timeline'] = $this->question_service->getAnswerTimeline();
     $result['new_answers'] = $this->question_service->getNewAnswers();
     return $result;
 }
Ejemplo n.º 2
0
 /**
  * @Route("/get_answer_timeline")
  * @Method({"GET"})
  *
  */
 public function getAnswerTimeline()
 {
     return $this->service->getAnswerTimeline();
 }