File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -28,22 +28,47 @@ public class GHArtifact extends GHObject {
2828 private boolean expired ;
2929 private String expiresAt ;
3030
31+ /**
32+ * Gets the name.
33+ *
34+ * @return the name
35+ */
3136 public String getName () {
3237 return name ;
3338 }
3439
40+ /**
41+ * Gets the size of the artifact in bytes.
42+ *
43+ * @return the size
44+ */
3545 public long getSizeInBytes () {
3646 return sizeInBytes ;
3747 }
3848
49+ /**
50+ * Gets the archive download URL.
51+ *
52+ * @return the archive download URL
53+ */
3954 public URL getArchiveDownloadUrl () {
4055 return GitHubClient .parseURL (archiveDownloadUrl );
4156 }
4257
58+ /**
59+ * If this artifact has expired.
60+ *
61+ * @return if the artifact has expired
62+ */
4363 public boolean isExpired () {
4464 return expired ;
4565 }
4666
67+ /**
68+ * Gets the date at which this artifact will expire.
69+ *
70+ * @return the date of expiration
71+ */
4772 public Date getExpiresAt () {
4873 return GitHubClient .parseDate (expiresAt );
4974 }
You can’t perform that action at this time.
0 commit comments