
com.sailthru.client.params.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sailthru-java-client Show documentation
Show all versions of sailthru-java-client Show documentation
Java client library for Sailthru API
package com.sailthru.client.params;
import com.google.gson.reflect.TypeToken;
import com.sailthru.client.ApiAction;
import java.lang.reflect.Type;
import java.util.Map;
/**
* Event params
* @author Ben Bartholomew
*/
public class Event extends AbstractApiParams implements ApiParams {
protected String id;
protected String key;
protected Map vars;
protected String event;
protected String schedule_time;
public Event(String id) {
this.id = id;
}
public Event() {
// this will be used when new user_id is to be created
}
public Event setKey(String key) {
this.key = key;
return this;
}
public Event setEvent(String eventName) {
this.event = eventName;
return this;
}
public Event setVars(Map vars) {
this.vars = vars;
return this;
}
public Event setScheduleTime(String scheduleTime) {
this.schedule_time = scheduleTime;
return this;
}
public Type getType() {
java.lang.reflect.Type _type = new TypeToken() {}.getType();
return _type;
}
public ApiAction getApiCall() {
return ApiAction.event;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy