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

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

The newest version!
package com.sailthru.client.params;

import com.google.gson.reflect.TypeToken;
import com.sailthru.client.SailthruUtil;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Prajwal Tuladhar 
 */
public class MultiSend extends Send {

    protected Map evars;

    public MultiSend() {
        this.options = new HashMap();
    }

    public MultiSend setEmails(java.util.List emails) {
        this.email = SailthruUtil.arrayListToCSV(emails);        
        return this;
    }

    public MultiSend setEvars(Map evars) {
        this.evars = evars;
        return this;
    }

    @Override
    public Type getType() {
         Type type = new TypeToken() {}.getType();
        return type;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy