-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kanstantsin Shautsou <[email protected]>
- Loading branch information
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.kohsuke.github; | ||
|
||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
import org.apache.commons.codec.DecoderException; | ||
|
||
import static org.apache.commons.codec.binary.Base64.decodeBase64; | ||
|
||
/** | ||
* @author Kanstantsin Shautsou | ||
* @see <a href="https://developer.github.com/v3/git/blobs/#get-a-blob">Get a blob</a> | ||
*/ | ||
public class GHBlob { | ||
private String content, encoding, url, sha; | ||
private long size; | ||
|
||
public String getEncoding() { | ||
return encoding; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public String getSha() { | ||
return sha; | ||
} | ||
|
||
public long getSize() { | ||
return size; | ||
} | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters