Add IssueComment class and bare bones IssueCommentsClass

Also rename IIssuesCommentClass to IISsueCommentsClass
This commit is contained in:
pltaylor
2013-10-31 13:12:41 -04:00
parent c0411b09a1
commit 9bf0df499d
4 changed files with 79 additions and 1 deletions
@@ -3,7 +3,7 @@ using System.Threading.Tasks;
namespace Octokit
{
public interface IIssuesCommentClient
public interface IIssueCommentsClient
{
/// <summary>
/// Gets a single Issue Comment by number.
+37
View File
@@ -0,0 +1,37 @@

using System.Threading.Tasks;
namespace Octokit
{
public class IssueCommentsClient : ApiClient, IIssueCommentsClient
{
public IssueCommentsClient(IApiConnection apiConnection) : base(apiConnection)
{
}
public Task<Issue> Get(string owner, string name, int number)
{
throw new System.NotImplementedException();
}
public Task<IReadOnlyList<Issue>> GetForRepository(string owner, string name)
{
throw new System.NotImplementedException();
}
public Task<IReadOnlyList<Issue>> GetForIssue(string owner, string name, int number)
{
throw new System.NotImplementedException();
}
public Task<Issue> Create(string owner, string name, int number, string newComment)
{
throw new System.NotImplementedException();
}
public Task<Issue> Update(string owner, string name, int number, string commentUpdate)
{
throw new System.NotImplementedException();
}
}
}
+38
View File
@@ -0,0 +1,38 @@
using System;
namespace Octokit
{
public class IssueComment
{
/// <summary>
/// The issue comment ID.
/// </summary>
public int ID { get; set; }
/// <summary>
/// The URL for this issue comment.
/// </summary>
public Uri Url { get; set; }
public Uri HtmlUrl { get; set; }
/// <summary>
/// Details about the issue comment.
/// </summary>
public string Body { get; set; }
/// <summary>
/// The date the issue comment was created.
/// </summary>
public DateTimeOffset CreatedAt { get; set; }
/// <summary>
/// The date the issue comment was last updated.
/// </summary>
public DateTimeOffset? UpdatedAt { get; set; }
/// <summary>
/// The user that created the issue comment.
/// </summary>
public User User { get; set; }
}
}
+3
View File
@@ -57,6 +57,8 @@
<Compile Include="Clients\ICommitStatusClient.cs" />
<Compile Include="Clients\IGitDatabaseClient.cs" />
<Compile Include="Clients\IIssuesCommentClient.cs" />
<Compile Include="Clients\IIssueCommentsClient.cs" />
<Compile Include="Clients\IssueCommentsClient.cs" />
<Compile Include="Clients\IssuesClient.cs" />
<Compile Include="Clients\ITagsClient.cs" />
<Compile Include="Clients\IssuesEventsClient.cs" />
@@ -78,6 +80,7 @@
<Compile Include="Models\Request\IssueRequest.cs" />
<Compile Include="Models\Request\IssueUpdate.cs" />
<Compile Include="Models\Response\IssueEvent.cs" />
<Compile Include="Models\Response\IssueComment.cs" />
<Compile Include="Models\Response\Label.cs" />
<Compile Include="Models\Response\Milestone.cs" />
<Compile Include="Models\Request\NewIssue.cs" />