This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathIInlineCommentThreadModel.cs
More file actions
63 lines (54 loc) · 2.08 KB
/
IInlineCommentThreadModel.cs
File metadata and controls
63 lines (54 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
using System.Collections.Generic;
namespace GitHub.Models
{
/// <summary>
/// Represents a thread of inline comments on an <see cref="IPullRequestSessionFile"/>.
/// </summary>
public interface IInlineCommentThreadModel
{
/// <summary>
/// Gets the comments in the thread.
/// </summary>
IReadOnlyList<InlineCommentModel> Comments { get; }
/// <summary>
/// Gets the last five lines of the thread's diff hunk, in reverse order.
/// </summary>
IList<DiffLine> DiffMatch { get; }
/// <summary>
/// Gets the type of diff line that the thread was left on
/// </summary>
DiffChangeType DiffLineType { get; }
/// <summary>
/// Gets or sets a value indicating that the <see cref="LineNumber"/> is approximate and
/// needs to be updated.
/// </summary>
/// <remarks>
/// As edits are made, the <see cref="LineNumber"/> for a thread can be shifted up or down,
/// but until <see cref="IPullRequestSession.RecaluateLineNumbers"/> is called we can't tell
/// whether the comment is still valid at the new position. This property indicates such a
/// state.
/// </remarks>
bool IsStale { get; set; }
/// <summary>
/// Gets or sets the 0-based line number of the comment, or -1 of the thread is outdated.
/// </summary>
int LineNumber { get; set; }
/// <summary>
/// Gets the SHA of the commit that the thread appears on.
/// </summary>
string CommitSha { get; }
/// <summary>
/// Gets the relative path to the file that the thread is on.
/// </summary>
string RelativePath { get; }
/// <summary>
/// Gets a value indicating whether the thread is outdated.
/// </summary>
bool IsOutdated { get; }
/// <summary>
/// Gets a value indicating whether comment thread has been marked as resolved by a user.
/// </summary>
bool IsResolved { get; }
}
}