mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
Add IssueComment class and bare bones IssueCommentsClass
Also rename IIssuesCommentClass to IISsueCommentsClass
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public interface IIssuesCommentClient
|
||||
public interface IIssueCommentsClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a single Issue Comment by number.
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user