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

backlog4j.api.GetProjects Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package backlog4j.api;

import backlog4j.BacklogClient;
import backlog4j.Project;
import backlog4j.impl.ProjectImpl;
import backlog4j.util.XmlRpcUtil;

import java.util.List;

/**
 * @author eguchi
 */
public class GetProjects implements BacklogCommand> {

    private final BacklogClient client;

    public GetProjects(BacklogClient client) {
        this.client = client;
    }

    public List execute() {
        Object res = client.execute(BACKLOG_GET_PROJECTS);

        return XmlRpcUtil.toList(ProjectImpl.class, res);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy