mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 18:13:21 +00:00
Replace ToRequestParameters implementations.
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Octokit
|
||||
namespace Octokit
|
||||
{
|
||||
public class RepositoryIssueRequest : IssueRequest
|
||||
{
|
||||
@@ -10,22 +7,5 @@ namespace Octokit
|
||||
/// Use the milestone number for a specific milestone. Use the value "none" for issues with any milestones.
|
||||
/// </summary>
|
||||
public string Milestone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns a dictionary of query string parameters that represent this request. Only values that
|
||||
/// do not have default values are in the dictionary. If everything is default, this returns an
|
||||
/// empty dictionary.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override IDictionary<string, string> ToParametersDictionary()
|
||||
{
|
||||
var dictionary = base.ToParametersDictionary();
|
||||
Debug.Assert(dictionary != null, "Base implementation is wrong. Dictionary should never be null");
|
||||
if (!Milestone.IsBlank())
|
||||
{
|
||||
dictionary.Add("milestone", Milestone);
|
||||
}
|
||||
return dictionary;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user