mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
* Added a convention test to detect a model constructor exposing all properties * add ctors to classes where they are missing * rename ctor parameters that dont match properties * add missing parameters to existing ctors * add specific PunchCard ctor to allow mocking, and update test to resolve call ambiguity * Added base class properties to the convention test Added member exclusion attribute * Updated newly offending classes 2 excludes and 2 ctors * rename exclusion attribute to be a bit shorter
22 lines
571 B
C#
22 lines
571 B
C#
using System.Diagnostics;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class CollaboratorPermission
|
|
{
|
|
public CollaboratorPermission() { }
|
|
|
|
public CollaboratorPermission(PermissionLevel permission, User user)
|
|
{
|
|
Permission = permission;
|
|
User = user;
|
|
}
|
|
|
|
public StringEnum<PermissionLevel> Permission { get; protected set; }
|
|
public User User { get; protected set; }
|
|
|
|
internal string DebuggerDisplay => $"User: {User.Id} Permission: {Permission}";
|
|
}
|
|
}
|