mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using System;
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
} |