using System; using System.Diagnostics; using System.Globalization; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class SearchCode { public SearchCode() { } public SearchCode(string name, string path, string sha, Uri url, Uri gitUrl, Uri htmlUrl, Repository repository) { Name = name; Path = path; Sha = sha; Url = url; GitUrl = gitUrl; HtmlUrl = htmlUrl; Repository = repository; } /// /// file name /// public string Name { get; protected set; } /// /// path to file /// public string Path { get; protected set; } /// /// Sha for file /// public string Sha { get; protected set; } /// /// api-url to file /// public Uri Url { get; protected set; } /// /// git-url to file /// public Uri GitUrl { get; protected set; } /// /// html-url to file /// public Uri HtmlUrl { get; protected set; } /// /// Repo where this file belongs to /// public Repository Repository { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Sha: {0} Name: {1}", Sha, Name); } } } }