1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Diagnostics . CodeAnalysis ;
4
+
5
+ namespace Octokit
6
+ {
7
+ public class Gist
8
+ {
9
+ /// <summary>
10
+ /// The API URL for this <see cref="Gist"/>.
11
+ /// </summary>
12
+ public string Url { get ; set ; }
13
+
14
+ /// <summary>
15
+ /// The Id of this <see cref="Gist"/>.
16
+ /// </summary>
17
+ /// <remarks>
18
+ /// Given a gist url of https://gist.github.com/UserName/1234 the Id would be '1234'.
19
+ /// </remarks>
20
+ public string Id { get ; set ; }
21
+
22
+ /// <summary>
23
+ /// A description of the <see cref="Gist"/>.
24
+ /// </summary>
25
+ public string Description { get ; set ; }
26
+
27
+ /// <summary>
28
+ /// Indicates if the <see cref="Gist"/> is private or public.
29
+ /// </summary>
30
+ public bool Public { get ; set ; }
31
+
32
+ /// <summary>
33
+ /// The <see cref="User"/> who owns this <see cref="Gist"/>.
34
+ /// </summary>
35
+ /// <remarks>
36
+ /// Given a gist url of https://gist.github.com/UserName/1234 the Owner would be 'UserName'.
37
+ /// </remarks>
38
+ public User Owner { get ; set ; }
39
+
40
+ /// <summary>
41
+ /// A <see cref="IDictionary{TKey,TValue}"/> containing all <see cref="GistFile"/>s in this <see cref="Gist"/>.
42
+ /// </summary>
43
+ [ SuppressMessage ( "Microsoft.Usage" , "CA2227:CollectionPropertiesShouldBeReadOnly" ) ]
44
+ public IDictionary < string , GistFile > Files { get ; set ; }
45
+
46
+ /// <summary>
47
+ /// The number of comments on this <see cref="Gist"/>.
48
+ /// </summary>
49
+ public int Comments { get ; set ; }
50
+
51
+ /// <summary>
52
+ /// A url to retrieve the comments for this <see cref="Gist"/>.
53
+ /// </summary>
54
+ public string CommentsUrl { get ; set ; }
55
+
56
+ public string HtmlUrl { get ; set ; }
57
+
58
+ /// <summary>
59
+ /// The git url to pull from to retrieve the contents for this <see cref="Gist"/>.
60
+ /// </summary>
61
+ public string GitPullUrl { get ; set ; }
62
+
63
+ /// <summary>
64
+ /// The git url to push to when changing this <see cref="Gist"/>.
65
+ /// </summary>
66
+ public string GitPushUrl { get ; set ; }
67
+
68
+ /// <summary>
69
+ /// The <see cref="DateTimeOffset"/> for when this <see cref="Gist"/> was created.
70
+ /// </summary>
71
+ public DateTimeOffset CreatedAt { get ; set ; }
72
+
73
+ /// <summary>
74
+ /// The <see cref="DateTimeOffset"/> for when this <see cref="Gist"/> was last updated.
75
+ /// </summary>
76
+ public DateTimeOffset UpdatedAt { get ; set ; }
77
+
78
+ /// <summary>
79
+ /// A <see cref="IList{T}"/> of all <see cref="GistFork"/> that exist for this <see cref="Gist"/>.
80
+ /// </summary>
81
+ [ SuppressMessage ( "Microsoft.Usage" , "CA2227:CollectionPropertiesShouldBeReadOnly" ) ]
82
+ public IList < GistFork > Forks { get ; set ; }
83
+
84
+ /// <summary>
85
+ /// A <see cref="IList{T}"/> of all <see cref="GistHistory"/> containing the full history for this <see cref="Gist"/>.
86
+ /// </summary>
87
+ [ SuppressMessage ( "Microsoft.Usage" , "CA2227:CollectionPropertiesShouldBeReadOnly" ) ]
88
+ public IList < GistHistory > History { get ; set ; }
89
+ }
90
+ }
0 commit comments