diff --git a/Octokit/Models/Request/NewSubscription.cs b/Octokit/Models/Request/NewSubscription.cs index 1e138575..844a5d93 100644 --- a/Octokit/Models/Request/NewSubscription.cs +++ b/Octokit/Models/Request/NewSubscription.cs @@ -1,7 +1,10 @@ using System; +using System.Diagnostics; +using System.Globalization; namespace Octokit { + [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewSubscription { /// @@ -13,5 +16,13 @@ namespace Octokit /// Determines if all notifications should be blocked from this repository. /// public bool Ignored { get; set; } + + internal string DebuggerDisplay + { + get + { + return String.Format(CultureInfo.InvariantCulture, "Subscribed: {0} Ignored: {1}", Subscribed, Ignored); + } + } } } diff --git a/Octokit/Models/Request/StarredRequest.cs b/Octokit/Models/Request/StarredRequest.cs index 4d71a41a..eb9bb6e8 100644 --- a/Octokit/Models/Request/StarredRequest.cs +++ b/Octokit/Models/Request/StarredRequest.cs @@ -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 StarredRequest : RequestParameters { public StarredRequest() @@ -15,6 +19,14 @@ namespace Octokit [Parameter(Key = "direction")] public SortDirection SortDirection { get; set; } + + internal string DebuggerDisplay + { + get + { + return String.Format(CultureInfo.InvariantCulture, "SortProperty: {0} SortDirection: {1}", SortProperty, SortDirection); + } + } } public enum StarredSort diff --git a/Octokit/Models/Request/UpdateTeam.cs b/Octokit/Models/Request/UpdateTeam.cs index 1ef7c728..09595b7c 100644 --- a/Octokit/Models/Request/UpdateTeam.cs +++ b/Octokit/Models/Request/UpdateTeam.cs @@ -1,10 +1,10 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; namespace Octokit { + [DebuggerDisplay("{DebuggerDisplay,nq}")] public class UpdateTeam { public UpdateTeam(string team) @@ -27,5 +27,13 @@ namespace Octokit /// permission for this team /// public Permission? Permission { get; set; } + + internal string DebuggerDisplay + { + get + { + return String.Format(CultureInfo.InvariantCulture, "Team: {0} Permission: {1}", Name, Permission.GetValueOrDefault()); + } + } } } \ No newline at end of file diff --git a/Octokit/Models/Request/UserUpdate.cs b/Octokit/Models/Request/UserUpdate.cs index efa39305..a1884bd2 100644 --- a/Octokit/Models/Request/UserUpdate.cs +++ b/Octokit/Models/Request/UserUpdate.cs @@ -1,9 +1,14 @@ +using System; +using System.Diagnostics; +using System.Globalization; + namespace Octokit { /// /// Represents updatable fields on a user. Values that are null will not be sent in the request. /// Use string.empty if you want to clear clear a value. /// + [DebuggerDisplay("{DebuggerDisplay,nq}")] public class UserUpdate { /// @@ -40,5 +45,13 @@ namespace Octokit /// Tells if this user is currently hireable. /// public bool? Hireable { get; set; } + + internal string DebuggerDisplay + { + get + { + return String.Format(CultureInfo.InvariantCulture, "Name: {0}", Name); + } + } } } \ No newline at end of file