Ejemplo n.º 1
0
 public function getConversationByUserPublication_get()
 {
     $status = 404;
     $return["data"] = "";
     $return["result"] = "NOOK";
     $userId = $this->get("userId");
     $publicationId = $this->get("publicationId");
     $conversationId = CI_Message::getConversationByUserPublication($publicationId, $userId);
     if (isset($conversationId["conversationId"])) {
         $status = 200;
         $return["data"] = $conversationId;
         $return["result"] = "OK";
     }
     $this->response($return, $status);
 }