using System.Collections.Generic; using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Used to update a gist and its contents. /// /// /// Note: All files from the previous version of the gist are carried over by default if not included in the /// object. Deletes can be performed by including the filename with a null object. /// API docs: https://developer.github.com/v3/gists/ /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class GistUpdate { public GistUpdate() { Files = new Dictionary(); } public string Description { get; set; } /// /// Gets a dictionary of gist files to update. /// /// /// Note: All files from the previous version of the gist are carried over by default if not included in the /// hash. Deletes can be performed by including the filename with a `null` hash. /// public IDictionary Files { get; private set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Description: {0}", Description); } } } }