Skip to content

Commit e18c94e

Browse files
committed
Document Pages, Misc, and Content Models
1 parent 92386fb commit e18c94e

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

lib/src/client/contents.dart

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,63 @@ part of github.client;
66
class File {
77
final GitHub github;
88

9+
/**
10+
* Type of File
11+
*/
912
@ApiName("type")
1013
String type;
1114

15+
/**
16+
* File Encoding
17+
*/
1218
@ApiName("encoding")
1319
String encoding;
1420

21+
/**
22+
* File Size
23+
*/
1524
@ApiName("size")
1625
int size;
1726

27+
/**
28+
* File Name
29+
*/
1830
@ApiName("name")
1931
String name;
2032

33+
/**
34+
* File Path
35+
*/
2136
@ApiName("path")
2237
String path;
2338

39+
/**
40+
* File Content
41+
*/
2442
@ApiName("content")
2543
String content;
2644

45+
/**
46+
* SHA
47+
*/
2748
@ApiName("sha")
2849
String sha;
2950

51+
/**
52+
* Url to file
53+
*/
3054
@ApiName("html_url")
3155
String url;
3256

57+
/**
58+
* Git Url
59+
*/
3360
@ApiName("git_url")
3461
String gitUrl;
3562

63+
/**
64+
* Links
65+
*/
3666
@ApiName("_links")
3767
FileLinks links;
3868

@@ -55,13 +85,25 @@ class File {
5585
}
5686
}
5787

88+
/**
89+
* File Links
90+
*/
5891
class FileLinks {
92+
/**
93+
* Git Link
94+
*/
5995
@ApiName("git")
6096
String git;
6197

98+
/**
99+
* Self Link
100+
*/
62101
@ApiName("self")
63102
String self;
64103

104+
/**
105+
* HTML Link
106+
*/
65107
@ApiName("html")
66108
String html;
67109

lib/src/client/misc.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
part of github.client;
22

3+
/**
4+
* A Gitignore Template
5+
*/
36
class GitignoreTemplate {
47
final GitHub github;
8+
9+
/**
10+
* Template Name
11+
*/
512
String name;
13+
14+
/**
15+
* Template Source
16+
*/
617
String source;
718

819
GitignoreTemplate(this.github);

lib/src/client/pages.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
part of github.client;
22

3+
/**
4+
* GitHub Pages Information
5+
*/
36
class RepositoryPages {
47
final GitHub github;
58

9+
/**
10+
* Pages CNAME
11+
*/
612
String cname;
13+
14+
/**
15+
* Pages Status
16+
*/
717
String status;
818

19+
/**
20+
* If the repo has a custom 404
21+
*/
922
@ApiName("custom_404")
1023
bool custom404;
1124

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy