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

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

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