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

org.kohsuke.github.GHWorkflowJobsPage Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha-2
Show newest version
package org.kohsuke.github;

// TODO: Auto-generated Javadoc
/**
 * Represents the one page of jobs result when listing jobs from a workflow run.
 */
class GHWorkflowJobsPage {
    private int total_count;
    private GHWorkflowJob[] jobs;

    /**
     * Gets the total count.
     *
     * @return the total count
     */
    public int getTotalCount() {
        return total_count;
    }

    /**
     * Gets the workflow jobs.
     *
     * @param repo
     *            the repo
     * @return the workflow jobs
     */
    GHWorkflowJob[] getWorkflowJobs(GHRepository repo) {
        for (GHWorkflowJob job : jobs) {
            job.wrapUp(repo);
        }
        return jobs;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy