mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 16:42:03 +00:00
4e804f61a6
* updated XML docs and added some missing bits. * prefer nameof(x) over literal "x"
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class ProjectColumnMove
|
|
{
|
|
public ProjectColumnMove(ProjectColumnPosition position, int? columnId)
|
|
{
|
|
switch (position)
|
|
{
|
|
case ProjectColumnPosition.After:
|
|
Ensure.ArgumentNotNull(columnId, nameof(columnId));
|
|
Position = string.Format(CultureInfo.InvariantCulture, "after:{0}", columnId);
|
|
break;
|
|
case ProjectColumnPosition.First:
|
|
Position = "first";
|
|
break;
|
|
case ProjectColumnPosition.Last:
|
|
Position = "last";
|
|
break;
|
|
}
|
|
}
|
|
|
|
public string Position { get; private set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Position: {0}", Position);
|
|
}
|
|
}
|
|
}
|
|
|
|
public enum ProjectColumnPosition
|
|
{
|
|
First,
|
|
Last,
|
|
After
|
|
}
|
|
}
|