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