com.askfast.askfastapi.model.EventCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of askfast-api-java Show documentation
Show all versions of askfast-api-java Show documentation
AskFast Library to use the AskFast system
package com.askfast.askfastapi.model;
import com.askfast.askfastapi.model.EventPost.EventType;
import com.askfast.model.ModelBase;
public class EventCallback extends ModelBase {
public static final String EVENT_TYPE_TIMEOUT = "timeout";
public static final String EVENT_TYPE_EXCEPTION = "exception";
public static final String EVENT_TYPE_HANGUP = "hangup";
private EventType event;
private String callback;
public EventCallback() {
this(null, null);
}
public EventCallback(EventType event, String callback) {
this.event = event;
this.callback = callback;
}
public EventType getEvent() {
return this.event;
}
public String getCallback() {
return this.callback;
}
public void setEvent(EventType event_type) {
this.event = event_type;
}
public void setCallback(String callback) {
this.callback = callback;
}
public static EventCallback fromJSON( String json )
{
return fromJSON( json, EventCallback.class );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy