From 42ca81af43ac697b64e011d07c811550488f5913 Mon Sep 17 00:00:00 2001 From: Sam Williamson Date: Thu, 20 Feb 2014 19:57:35 -0500 Subject: [PATCH] Added XML comments to model classes Added XML comments to model classes: copied feed definitions from github developer docs --- Octokit/Models/Response/Feed.cs | 31 +++++++++++++++++++++++++ Octokit/Models/Response/FeedLink.cs | 36 +++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/Octokit/Models/Response/Feed.cs b/Octokit/Models/Response/Feed.cs index fe7d4c1d..f628f80a 100644 --- a/Octokit/Models/Response/Feed.cs +++ b/Octokit/Models/Response/Feed.cs @@ -6,17 +6,48 @@ using System.Threading.Tasks; namespace Octokit { + /// + /// Lists all the feeds available to the authenticating user: + /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Feed { + /// + /// The GitHub global public timeline + /// public string TimelineUrl { get; set; } + + /// + /// The public timeline for any user, using URI template + /// public string UserUrl { get; set; } + + /// + /// The public timeline for the authenticated user + /// public string CurrentUserPublicUrl { get; set; } + + /// + /// The private timeline for the authenticated user + /// public string CurrentUserUrl { get; set; } + + /// + /// The private timeline for activity created by the authenticated user + /// public string CurrentUserActorUrl { get; set; } + + /// + /// The private timeline for the authenticated user for a given organization, using URI template + /// public string CurrentUserOrganizationUrl { get; set; } + + // TODO: Note, the deserializer didn't work when this was named Links + /// + /// List of feed urls including feed url and feed type, e.g. application/atom+xml + /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "links"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores")] public FeedLinks _links { get; set; } diff --git a/Octokit/Models/Response/FeedLink.cs b/Octokit/Models/Response/FeedLink.cs index 14f4d981..bb1668fb 100644 --- a/Octokit/Models/Response/FeedLink.cs +++ b/Octokit/Models/Response/FeedLink.cs @@ -3,19 +3,55 @@ using System.Diagnostics; namespace Octokit { + /// + /// Collection of feeds including both url and type + /// public class FeedLinks { + /// + /// The GitHub global public timeline + /// public FeedLink Timeline { get; set; } + + /// + /// The public timeline for any user, using URI template + /// public FeedLink User { get; set; } + + /// + /// The public timeline for the authenticated user + /// public FeedLink CurrentUserPublic { get; set; } + + /// + /// The private timeline for the authenticated user + /// public FeedLink CurrentUser { get; set; } + + /// + /// The private timeline for activity created by the authenticated user + /// public FeedLink CurrentUserActor { get; set; } + + /// + /// The private timeline for the authenticated user for a given organization, using URI template + /// public FeedLink CurrentUserOrganization { get; set; } } + /// + /// Feed information including feed url and feed type + /// public class FeedLink { + /// + /// Link to feed + /// public string Href { get; set; } + + /// + /// Feed type, e.g. application/atom+xml + /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")] public string Type { get; set; } }