mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
99 lines
2.8 KiB
C#
99 lines
2.8 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class Milestone
|
|
{
|
|
public Milestone() { }
|
|
|
|
public Milestone(int number)
|
|
{
|
|
Number = number;
|
|
}
|
|
|
|
public Milestone(Uri url, Uri htmlUrl, int number, ItemState state, string title, string description, User creator, int openIssues, int closedIssues, DateTimeOffset createdAt, DateTimeOffset? dueOn, DateTimeOffset? closedAt)
|
|
{
|
|
Url = url;
|
|
HtmlUrl = htmlUrl;
|
|
Number = number;
|
|
State = state;
|
|
Title = title;
|
|
Description = description;
|
|
Creator = creator;
|
|
OpenIssues = openIssues;
|
|
ClosedIssues = closedIssues;
|
|
CreatedAt = createdAt;
|
|
DueOn = dueOn;
|
|
ClosedAt = closedAt;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The URL for this milestone.
|
|
/// </summary>
|
|
public Uri Url { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The Html page for this milestone.
|
|
/// </summary>
|
|
public Uri HtmlUrl { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The milestone number.
|
|
/// </summary>
|
|
public int Number { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Whether the milestone is open or closed.
|
|
/// </summary>
|
|
public ItemState State { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Title of the milestone
|
|
/// </summary>
|
|
public string Title { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Optional description for the milestone.
|
|
/// </summary>
|
|
public string Description { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The user that created this milestone.
|
|
/// </summary>
|
|
public User Creator { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The number of open issues in this milestone.
|
|
/// </summary>
|
|
public int OpenIssues { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The number of closed issues in this milestone.
|
|
/// </summary>
|
|
public int ClosedIssues { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The date this milestone was created
|
|
/// </summary>
|
|
public DateTimeOffset CreatedAt { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The date, if any, when this milestone is due.
|
|
/// </summary>
|
|
public DateTimeOffset? DueOn { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The date, if any, when this milestone was closed.
|
|
/// </summary>
|
|
public DateTimeOffset? ClosedAt { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get { return string.Format(CultureInfo.InvariantCulture, "Title {0} ", Title); }
|
|
}
|
|
}
|
|
}
|