
com.sailthru.client.params.User 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;
/**
* User params
* @author Prajwal Tuladhar
*/
public class User extends AbstractApiParams implements ApiParams {
public static final String PARAM_TEMPLATE = "user";
protected String id;
protected String key;
protected Map fields;
protected Map keys;
protected String keysconflict;
protected Map vars;
protected Map lists;
protected String optout_email;
protected Map login;
public User(String id) {
this.id = id;
}
public User() {
// this will be used when new user_id is to be created
}
public User setKey(String key) {
this.key = key;
return this;
}
public User setFields(Map fields) {
this.fields = fields;
return this;
}
public User setKeys(Map keys) {
this.keys = keys;
return this;
}
public User setKeysConflict(String keysConflict) {
this.keysconflict = keysConflict;
return this;
}
public User setVars(Map vars) {
this.vars = vars;
return this;
}
public User setLists(Map lists) {
this.lists = lists;
return this;
}
public User setOptoutEmail(String optoutEmail) {
this.optout_email = optoutEmail;
return this;
}
public User setLogin(Map login) {
this.login = login;
return this;
}
public Type getType() {
java.lang.reflect.Type _type = new TypeToken() {}.getType();
return _type;
}
public ApiAction getApiCall() {
return ApiAction.user;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy