Added DebuggerDisplay to EmailAddress model

This commit is contained in:
Peter MacNaughton
2014-02-07 23:34:16 -07:00
parent 172170a24a
commit 1fffebc446
+23
View File
@@ -1,11 +1,34 @@
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("DebuggerDisplay,nq")]
public class EmailAddress
{
/// <summary>
/// The email address
/// </summary>
public string Email { get; set; }
/// <summary>
/// true if the email is verified; otherwise false
/// </summary>
public bool Verified { get; set; }
/// <summary>
/// true if this is the users primary email; otherwise false
/// </summary>
public bool Primary { get; set; }
private string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture,
"EmailAddress: Email: {0}; Primary: {1}, Verified: {2}", Email, Primary, Verified);
}
}
}
}