Getting there!

This commit is contained in:
Amy Palamountain
2014-02-19 22:11:20 +13:00
parent cd5627c824
commit ea97d09cd1
8 changed files with 87 additions and 9 deletions
+13 -1
View File
@@ -1,7 +1,11 @@
using Octokit.Internal;
using System;
using System.Diagnostics;
using System.Globalization;
using Octokit.Internal;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class MilestoneRequest : RequestParameters
{
public MilestoneRequest()
@@ -18,6 +22,14 @@ namespace Octokit
[Parameter(Key = "direction")]
public SortDirection SortDirection { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "State {0} ", State);
}
}
}
public enum MilestoneSort
+11
View File
@@ -1,10 +1,13 @@
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Describes a new milestone to create via the <see cref="IMilestonesClient.Create(string,string,NewMilestone)"/> method.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewMilestone
{
public NewMilestone(string title)
@@ -34,5 +37,13 @@ namespace Octokit
/// An optional date when the milestone is due.
/// </summary>
public DateTimeOffset? DueOn { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Title {0} State: {1}", Title, State);
}
}
}
}
+14 -4
View File
@@ -1,15 +1,25 @@
using System.Runtime.Serialization;
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewTag
{
public string Tag { get; set; }
public string Message { get; set; }
public string Object { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods",
Justification = "Property name as defined by web api")]
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods", Justification = "Property name as defined by web api")]
public TaggedType Type { get; set; }
public Signature Tagger { get; set; }
public Signature Tagger { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Tag {0} Type: {1}", Tag, Type);
}
}
}
}
+11 -3
View File
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ReleaseAssetUpdate
{
public ReleaseAssetUpdate(string name)
@@ -25,5 +25,13 @@ namespace Octokit
/// Used in place of the filename.
/// </summary>
public string Label { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Name {0} Label: {1}", Name, Label);
}
}
}
}
@@ -1,5 +1,8 @@
namespace Octokit
using System.Diagnostics;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RepositoryIssueRequest : IssueRequest
{
/// <summary>
+11
View File
@@ -1,7 +1,10 @@
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Emoji
{
public Emoji(string name, Uri url)
@@ -15,5 +18,13 @@ namespace Octokit
public string Name { get; private set; }
public Uri Url { get; private set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Name {0} ", Name);
}
}
}
}
+11
View File
@@ -1,7 +1,10 @@
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Milestone
{
/// <summary>
@@ -53,5 +56,13 @@ namespace Octokit
/// The date, if any, when this milestone is due.
/// </summary>
public DateTimeOffset? DueOn { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Title {0} ", Title);
}
}
}
}
@@ -1,11 +1,23 @@
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ReleaseAssetUpload
{
public string FileName { get; set; }
public string ContentType { get; set; }
public Stream RawData { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "FileName: {0} ", FileName);
}
}
}
}