public function checkDownloadLimit($request)
 {
     $json = json_encode($request->parameters);
     $contentDownloadHistory = new ContentDownloadHistory();
     $jsonObj = json_decode($json);
     $jsonMessage = $contentDownloadHistory->validateJsonForCheckDownloadLimit($jsonObj);
     if ($jsonMessage != Message::SUCCESS) {
         $response = array("status" => "ERROR", "status_code" => '400', 'msgs' => $jsonMessage);
         $this->outputError($response);
         return;
     }
     if (!$contentDownloadHistory->setValuesFromJsonObj($jsonObj)) {
         $response = array("status" => "ERROR", "status_code" => '400', 'msgs' => Message::ERROR_INVAID_REQUEST_BODY);
         $this->outputError($response);
         return;
     }
     if (trim($contentDownloadHistory->cd_msisdn) == '') {
         $response = array("status" => "ERROR", "status_code" => '400', 'msgs' => Message::ERROR_BLANK_MSISDN);
         $this->outputError($response);
         return;
     }
 }