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

com.sailthru.client.params.Event Maven / Gradle / Ivy

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