use of com.rayo.core.verb.SayCompleteEvent.Reason in project Openfire by igniterealtime.
the class HandsetProvider method buildCompleteCommand.
private Object buildCompleteCommand(Element element) {
Element reasonElement = (Element) element.elements().get(0);
String reasonValue = reasonElement.getName().toUpperCase();
Reason reason = Reason.valueOf(reasonValue);
SayCompleteEvent complete = new SayCompleteEvent();
complete.setReason(reason);
return complete;
}