diff --git a/Octokit/Models/Request/MarkAsReadRequest.cs b/Octokit/Models/Request/MarkAsReadRequest.cs index cedf4808..e62074cb 100644 --- a/Octokit/Models/Request/MarkAsReadRequest.cs +++ b/Octokit/Models/Request/MarkAsReadRequest.cs @@ -1,6 +1,6 @@ using System; using System.Diagnostics; -using Octokit.Internal; +using System.Globalization; namespace Octokit { @@ -16,5 +16,10 @@ namespace Octokit /// Describes the last point that notifications were checked. Anything updated since this time will not be updated. /// public DateTimeOffset? LastReadAt { get; set; } + + internal string DebuggerDisplay + { + get { return String.Format(CultureInfo.InvariantCulture, "LastReadAt: {0}", LastReadAt); } + } } } diff --git a/Octokit/Models/Request/NewDeployKey.cs b/Octokit/Models/Request/NewDeployKey.cs index f48c1683..44571159 100644 --- a/Octokit/Models/Request/NewDeployKey.cs +++ b/Octokit/Models/Request/NewDeployKey.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Globalization; namespace Octokit { @@ -14,6 +11,12 @@ namespace Octokit public class NewDeployKey { public string Title { get; set; } + public string Key { get; set; } + + internal string DebuggerDisplay + { + get { return String.Format(CultureInfo.InvariantCulture, "Key: {0}, Title: {1}", Key, Title); } + } } } diff --git a/Octokit/Models/Request/PullRequestReviewCommentCreate.cs b/Octokit/Models/Request/PullRequestReviewCommentCreate.cs index d9ae04b8..54bc8050 100644 --- a/Octokit/Models/Request/PullRequestReviewCommentCreate.cs +++ b/Octokit/Models/Request/PullRequestReviewCommentCreate.cs @@ -1,5 +1,6 @@ -using System.Diagnostics; -using Octokit.Internal; +using System; +using System.Diagnostics; +using System.Globalization; namespace Octokit { @@ -44,5 +45,10 @@ namespace Octokit /// The line index in the diff to comment on. /// public int Position { get; private set; } + + internal string DebuggerDisplay + { + get { return String.Format(CultureInfo.InvariantCulture, "CommitId: {0}, Path: {1}, Position: {2}", CommitId, Path, Position); } + } } } diff --git a/Octokit/Models/Request/PullRequestReviewCommentEdit.cs b/Octokit/Models/Request/PullRequestReviewCommentEdit.cs index f8cc7ba1..527f4593 100644 --- a/Octokit/Models/Request/PullRequestReviewCommentEdit.cs +++ b/Octokit/Models/Request/PullRequestReviewCommentEdit.cs @@ -1,4 +1,6 @@ -using System.Diagnostics; +using System; +using System.Diagnostics; +using System.Globalization; namespace Octokit { @@ -20,5 +22,10 @@ namespace Octokit /// The text of the comment. /// public string Body { get; private set; } + + internal string DebuggerDisplay + { + get { return String.Format(CultureInfo.InvariantCulture, "Body: {0}", Body); } + } } } diff --git a/Octokit/Models/Request/PullRequestReviewCommentReplyCreate.cs b/Octokit/Models/Request/PullRequestReviewCommentReplyCreate.cs index 221ea677..8a17544b 100644 --- a/Octokit/Models/Request/PullRequestReviewCommentReplyCreate.cs +++ b/Octokit/Models/Request/PullRequestReviewCommentReplyCreate.cs @@ -1,5 +1,6 @@ -using System.Diagnostics; -using Octokit.Internal; +using System; +using System.Diagnostics; +using System.Globalization; namespace Octokit { @@ -28,5 +29,10 @@ namespace Octokit /// The comment Id to reply to. /// public int InReplyTo { get; private set; } + + internal string DebuggerDisplay + { + get { return String.Format(CultureInfo.InvariantCulture, "InReplyTo: {0}, Body: {1}", InReplyTo, Body); } + } } } diff --git a/Octokit/Models/Request/PullRequestReviewCommentRequest.cs b/Octokit/Models/Request/PullRequestReviewCommentRequest.cs index 4bd22d0f..5d923854 100644 --- a/Octokit/Models/Request/PullRequestReviewCommentRequest.cs +++ b/Octokit/Models/Request/PullRequestReviewCommentRequest.cs @@ -1,5 +1,6 @@ using System; using System.Diagnostics; +using System.Globalization; namespace Octokit { @@ -28,5 +29,10 @@ namespace Octokit /// Only comments updated at or after this time are returned. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. /// public DateTimeOffset? Since { get; set; } + + internal string DebuggerDisplay + { + get { return String.Format(CultureInfo.InvariantCulture, "Sort: {0}, Direction: {1}, Since: {2}", Sort, Direction, Since); } + } } } diff --git a/Octokit/Models/Request/RequestParameters.cs b/Octokit/Models/Request/RequestParameters.cs index 2cf5f06f..b6857e75 100644 --- a/Octokit/Models/Request/RequestParameters.cs +++ b/Octokit/Models/Request/RequestParameters.cs @@ -3,7 +3,6 @@ using System.Collections.Concurrent; #endif using System.Collections.Generic; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; @@ -15,7 +14,6 @@ namespace Octokit /// /// Base class for classes which represent query string parameters to certain API endpoints. /// - [DebuggerDisplay("{DebuggerDisplay,nq}")] public abstract class RequestParameters { #if PORTABLE diff --git a/Octokit/Models/Response/PullRequestReviewComment.cs b/Octokit/Models/Response/PullRequestReviewComment.cs index 4db57671..462888c0 100644 --- a/Octokit/Models/Response/PullRequestReviewComment.cs +++ b/Octokit/Models/Response/PullRequestReviewComment.cs @@ -1,5 +1,6 @@ using System; using System.Diagnostics; +using System.Globalization; namespace Octokit { @@ -84,6 +85,11 @@ namespace Octokit /// The URL for the pull request via the API. /// public Uri PullRequestUrl { get; protected set; } + + internal string DebuggerDisplay + { + get { return String.Format(CultureInfo.InvariantCulture, "Id: {0}, Path: {1}, User: {2}, Url: {3}", Id, Path, User.DebuggerDisplay, Url); } + } } public enum PullRequestReviewCommentSort