data.setTargetId(remind.getScopePid());
data.setStartTime(formatter.reformat(content.getStartDate()));
data.setEndTime(formatter.reformat(content.getEndDate()));
data.setContent(content.getContent());
CapUserDetails userDetail = allPrincipal
.get(data.getTargetId());
if (userDetail != null) {
SocketIOClient client = userDetail.getSocketClient();
if (client != null) {
String event = remind.getStyleTyp().equals(
RemindEnum.TEXT.getCode()) ? "textEvent"
: "popUpEvent";
client.sendEvent(event, data);