
org.sourcelab.github.client.response.WorkflowJobsResponse Maven / Gradle / Ivy
The newest version!
package org.sourcelab.github.client.response;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.sourcelab.github.client.objects.WorkflowJob;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class WorkflowJobsResponse {
private final int totalCount;
private final List workflowJobs;
@JsonCreator
public WorkflowJobsResponse(
@JsonProperty("total_count") final int totalCount,
@JsonProperty("jobs") final List workflowJobs
) {
this.totalCount = totalCount;
this.workflowJobs = Collections.unmodifiableList(new ArrayList<>( (workflowJobs == null) ? Collections.emptyList() : workflowJobs ));
}
public int getTotalCount() {
return totalCount;
}
public List getWorkflowJobs() {
return workflowJobs;
}
@Override
public String toString() {
return "WorkflowJobsResponse{"
+ "\n\ttotalCount=" + totalCount
+ "\n\tworkflowJobs=" + workflowJobs
+ "\n}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy