forked from hub4j/github-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGHGistFile.java
More file actions
79 lines (70 loc) · 1.41 KB
/
GHGistFile.java
File metadata and controls
79 lines (70 loc) · 1.41 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package org.kohsuke.github;
/**
* A file inside {@link GHGist}
*
* @author Kohsuke Kawaguchi
* @see GHGist#getFile(String) GHGist#getFile(String)
* @see GHGist#getFiles() GHGist#getFiles()
*/
public class GHGistFile {
/* package almost final */ String fileName;
private int size;
private String raw_url, type, language, content;
private boolean truncated;
/**
* Gets file name.
*
* @return the file name
*/
public String getFileName() {
return fileName;
}
/**
* File size in bytes.
*
* @return the size
*/
public int getSize() {
return size;
}
/**
* URL that serves this file as-is.
*
* @return the raw url
*/
public String getRawUrl() {
return raw_url;
}
/**
* Content type of this Gist, such as "text/plain"
*
* @return the type
*/
public String getType() {
return type;
}
/**
* Gets language.
*
* @return the language
*/
public String getLanguage() {
return language;
}
/**
* Content of this file.
*
* @return the content
*/
public String getContent() {
return content;
}
/**
* (?) indicates if {@link #getContent()} contains a truncated content.
*
* @return the boolean
*/
public boolean isTruncated() {
return truncated;
}
}