Search in sources :

Example 1 with Reason

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;
}
Also used : Element(org.dom4j.Element) Reason(com.rayo.core.verb.SayCompleteEvent.Reason)

Aggregations

Reason (com.rayo.core.verb.SayCompleteEvent.Reason)1 Element (org.dom4j.Element)1