Skip to content

Commit

Permalink
refactor (Voice): Remove unused event processing related to 'respond …
Browse files Browse the repository at this point in the history
…to incoming call' getting started
  • Loading branch information
JPPortier committed Sep 24, 2024
1 parent 16c5eda commit 79af25b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,10 @@ public ResponseEntity<String> VoiceEvent(
var response =
switch (event) {
case IncomingCallEvent e -> webhooksBusinessLogic.incoming(e);
case AnsweredCallEvent e -> webhooksBusinessLogic.answered(e);
case DisconnectCallEvent e -> {
webhooksBusinessLogic.disconnect(e);
yield null;
}
case PromptInputEvent e -> {
webhooksBusinessLogic.prompt(e);
yield null;
}
case NotifyEvent e -> {
webhooksBusinessLogic.notify(e);
yield null;
}
default -> throw new IllegalStateException("Unexpected value: " + event);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,9 @@ public SVAMLControl incoming(IncomingCallEvent event) {
.build();
}

public SVAMLControl answered(AnsweredCallEvent event) {

LOGGER.info("Handle event: " + event);

return SVAMLControl.builder().build();
}

public void disconnect(DisconnectCallEvent event) {

LOGGER.info("Handle event: " + event);
}

public void prompt(PromptInputEvent event) {

LOGGER.info("Handle event: " + event);
}

public void notify(NotifyEvent event) {

LOGGER.info("Handle event: " + event);
}

}

0 comments on commit 79af25b

Please sign in to comment.