Files
octokit.net/Octokit/Models/Response/Feed.cs
2016-03-25 13:38:07 +07:00

70 lines
2.3 KiB
C#

using System.Diagnostics;
using System.Globalization;
using Octokit.Internal;
namespace Octokit
{
/// <summary>
/// Lists all the feeds available to the authenticating user:
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Feed
{
public Feed() { }
public Feed(string timelineUrl, string userUrl, string currentUserPublicUrl, string currentUserUrl, string currentUserActorUrl, string currentUserOrganizationUrl, FeedLinks links)
{
TimelineUrl = timelineUrl;
UserUrl = userUrl;
CurrentUserPublicUrl = currentUserPublicUrl;
CurrentUserUrl = currentUserUrl;
CurrentUserActorUrl = currentUserActorUrl;
CurrentUserOrganizationUrl = currentUserOrganizationUrl;
Links = links;
}
/// <summary>
/// The GitHub global public timeline
/// </summary>
public string TimelineUrl { get; protected set; }
/// <summary>
/// The public timeline for any user, using URI template
/// </summary>
public string UserUrl { get; protected set; }
/// <summary>
/// The public timeline for the authenticated user
/// </summary>
public string CurrentUserPublicUrl { get; protected set; }
/// <summary>
/// The private timeline for the authenticated user
/// </summary>
public string CurrentUserUrl { get; protected set; }
/// <summary>
/// The private timeline for activity created by the authenticated user
/// </summary>
public string CurrentUserActorUrl { get; protected set; }
/// <summary>
/// The private timeline for the authenticated user for a given organization, using URI template
/// </summary>
public string CurrentUserOrganizationUrl { get; protected set; }
/// <summary>
/// List of feed urls including feed url and feed type, e.g. application/atom+xml
/// </summary>
[Parameter(Key = "_links")]
public FeedLinks Links { get; protected set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Public Url: {0} ", CurrentUserPublicUrl);
}
}
}
}