org.gitlab4j.api.models.IssuesStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab4j-api Show documentation
Show all versions of gitlab4j-api Show documentation
GitLab4J-API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories and servers via the GitLab REST API.
package org.gitlab4j.api.models;
import org.gitlab4j.api.utils.JacksonJson;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class IssuesStatistics {
private Statistics statistics;
public Statistics getStatistics() {
return statistics;
}
public void setStatistics(Statistics statistics) {
this.statistics = statistics;
}
@JsonIgnore
public Counts getCounts() {
return (statistics != null ? statistics.counts : null);
}
public static class Statistics {
private Counts counts;
public Counts getCounts() {
return counts;
}
public void setCounts(Counts counts) {
this.counts = counts;
}
}
public static class Counts {
private Integer all;
private Integer closed;
private Integer opened;
public Integer getAll() {
return all;
}
public void setAll(Integer all) {
this.all = all;
}
public Integer getClosed() {
return closed;
}
public void setClosed(Integer closed) {
this.closed = closed;
}
public Integer getOpened() {
return opened;
}
public void setOpened(Integer opened) {
this.opened = opened;
}
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}