| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| 3 |
import com.fasterxml.jackson.databind.ObjectMapper;
|
3 |
import com.fasterxml.jackson.databind.ObjectMapper;
|
| - |
|
4 |
import com.spice.profitmandi.service.integrations.spicemoney.CallbackRequestData;
|
| 4 |
import com.spice.profitmandi.service.smartping.model.CallDetailModel;
|
5 |
import com.spice.profitmandi.service.smartping.model.CallDetailModel;
|
| 5 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
6 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
| 6 |
import org.apache.logging.log4j.LogManager;
|
7 |
import org.apache.logging.log4j.LogManager;
|
| 7 |
import org.apache.logging.log4j.Logger;
|
8 |
import org.apache.logging.log4j.Logger;
|
| 8 |
import org.springframework.beans.factory.annotation.Autowired;
|
9 |
import org.springframework.beans.factory.annotation.Autowired;
|
| Line 28... |
Line 29... |
| 28 |
ObjectMapper objectMapper;
|
29 |
ObjectMapper objectMapper;
|
| 29 |
|
30 |
|
| 30 |
@RequestMapping(value = "/click2call/report-handler", method = RequestMethod.POST)
|
31 |
@RequestMapping(value = "/click2call/report-handler", method = RequestMethod.POST)
|
| 31 |
public String click2callReportHandlerPost(HttpServletRequest request, Model model, @RequestParam(name = "push_report") String report) throws Exception {
|
32 |
public String click2callReportHandlerPost(HttpServletRequest request, Model model, @RequestParam(name = "push_report") String report) throws Exception {
|
| 32 |
|
33 |
|
| 33 |
LOGGER.info("Report - {}", report);
|
34 |
CallDetailModel callDetailModel = objectMapper.readValue(report, CallDetailModel.class);
|
| 34 |
objectMapper.readValue(report, CallDetailModel.class);
|
35 |
LOGGER.info("Report - {}", callDetailModel);
|
| 35 |
model.addAttribute("response1", mvcResponseSender.createResponseString("GODBLESSYOU"));
|
36 |
model.addAttribute("response1", mvcResponseSender.createResponseString("GODBLESSYOU"));
|
| 36 |
return "response";
|
37 |
return "response";
|
| 37 |
}
|
38 |
}
|
| 38 |
}
|
39 |
}
|