-
Notifications
You must be signed in to change notification settings - Fork 775
Expand file tree
/
Copy pathGHArtifactsPage.java
More file actions
37 lines (33 loc) · 904 Bytes
/
GHArtifactsPage.java
File metadata and controls
37 lines (33 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package org.kohsuke.github;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
// TODO: Auto-generated Javadoc
/**
* Represents the one page of artifacts result when listing artifacts.
*/
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
justification = "JSON API")
class GHArtifactsPage {
private GHArtifact[] artifacts;
private int total_count;
/**
* Gets the total count.
*
* @return the total count
*/
public int getTotalCount() {
return total_count;
}
/**
* Gets the artifacts.
*
* @param owner
* the owner
* @return the artifacts
*/
GHArtifact[] getArtifacts(GHRepository owner) {
for (GHArtifact artifact : artifacts) {
artifact.wrapUp(owner);
}
return artifacts;
}
}