Skip to content

Commit

Permalink
Merge pull request #122 from tbruyelle/browserDownloadUrl
Browse files Browse the repository at this point in the history
Add missing field browser_download_url in GHAsset
  • Loading branch information
kohsuke committed Sep 4, 2014
2 parents e6d59df + 9eda2d3 commit 4029fcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/kohsuke/github/GHAsset.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class GHAsset {
private long download_count;
private Date created_at;
private Date updated_at;
private String browser_download_url;

public String getContentType() {
return content_type;
Expand Down Expand Up @@ -80,6 +81,10 @@ public String getUrl() {
return url;
}

public String getBrowserDownloadUrl() {
return browser_download_url;
}

private void edit(String key, Object value) throws IOException {
new Requester(root)._with(key, value).method("PATCH").to(getApiRoute());
}
Expand Down

0 comments on commit 4029fcc

Please sign in to comment.