
com.sailthru.client.params.List 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.sailthru.client.ApiAction;
import com.google.gson.reflect.TypeToken;
import com.sailthru.client.params.query.Query;
import java.lang.reflect.Type;
import java.util.ArrayList;
/**
*
* @author Prajwal Tuladhar
*/
public class List extends AbstractApiParams implements ApiParams {
protected String list;
protected Integer primary;
protected ListType type;
protected Query query;
public List setQuery(Query query) {
this.query = query;
return this;
}
public List setList(String list) {
this.list = list;
return this;
}
public List setPrimary() {
this.primary = 1;
return this;
}
public List setListType(ListType listType) {
this.type = listType;
return this;
}
public ApiAction getApiCall() {
return ApiAction.list;
}
public Type getType() {
return new TypeToken() {}.getType();
}
public enum ListType {
smart,
normal
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy