All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.askfast.askfastapi.model.EventCallback Maven / Gradle / Ivy

There is a newer version: 1.5.7
Show newest version
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