Files
octokit.net/Octokit/Models/Request/NewGist.cs
2016-03-25 13:38:07 +07:00

42 lines
1.0 KiB
C#

using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Used to create a new Gist.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewGist
{
public NewGist()
{
Files = new Dictionary<string, string>();
}
/// <summary>
/// The description of the gist.
/// </summary>
public string Description { get; set; }
/// <summary>
/// Indicates whether the gist is public
/// </summary>
public bool Public { get; set; }
/// <summary>
/// Files that make up this gist using the key as Filename
/// and value as Content
/// </summary>
public IDictionary<string, string> Files { get; private set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Description: {0}", Description);
}
}
}
}