com.twilio.twiml.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio Show documentation
Show all versions of twilio Show documentation
Twilio Java Helper Library
package com.twilio.twiml;
import com.google.common.base.Function;
public enum Event {
INITIATED("initiated"),
RINGING("ringing"),
ANSWERED("answered"),
COMPLETED("completed");
private final String value;
Event(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
public static final Function TO_STRING = new Function() {
@Override
public String apply(Event event) {
return event.toString();
}
};
}