Files
octokit.net/Octokit/Models/Request/ProjectCardUpdate.cs
Ryan Gribble 043e64b89f Implement new Project Card archiving (#1842)
* add Archived to ProjectCard response
add Archived to ProjectCardUpdate
update integration tests

* Add ProjectCardRequest model and update GetAll calls to use it
Update unit tests
Update integration tests

* skip_branch_with_pr still ends up building the branch on the initial push, so let's only build master instead
2018-07-11 20:38:54 +10:00

39 lines
993 B
C#

using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ProjectCardUpdate
{
public ProjectCardUpdate()
{
}
[Obsolete("This constructor will be removed in a future release, due to the 'Note' parameter not being mandatory. Use object initializer syntax instead.")]
public ProjectCardUpdate(string note)
{
Note = note;
}
/// <summary>
/// The new note of the card.
/// </summary>
public string Note { get; set; }
/// <summary>
/// Archive/Unarchive the card.
/// </summary>
public bool? Archived { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Note: {0}, Archived: {1}", Note, Archived?.ToString() ?? "null");
}
}
}
}