private CallEvent getMissedCallEvent() { CallEvent callEvent = new CallEvent("Missed"); CallEventCustomData callEventCustomData = new CallEventCustomData(); callEventCustomData.add(IVRService.CALL_TYPE, "Pill Reminder"); callEvent.setData(callEventCustomData); return callEvent; }
private CallEvent endOfCallEvent() { CallEvent event = new CallEvent(CallState.MAIN_MENU.name()); CallEventCustomData data = new CallEventCustomData(); event.setTimeStamp(DateUtil.now().plusMinutes(1)); event.setData(data); return event; }
private CallEvent messagesEvent() { CallEvent event = new CallEvent(CallState.PULL_MESSAGES.name()); CallEventCustomData data = new CallEventCustomData(); data.add( CallEventConstants.CUSTOM_DATA_LIST, "<response><playaudio>http://localhost/response1.wav</playaudio><playaudio>http://localhost/response2.wav</playaudio></response>"); data.add(CallEventConstants.CALL_STATE, CallState.PULL_MESSAGES.name()); event.setTimeStamp(DateUtil.now()); event.setData(data); return event; }