Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 967a749

Browse files
IReadOnlyList > IReadOnlyCollection
1 parent b01e6ec commit 967a749

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/GitHub.App/SampleData/CommentThreadViewModelDesigner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public CommentThreadViewModelDesigner()
7575
public IReadOnlyReactiveList<ICommentViewModel> Comments { get; }
7676
= new ReactiveList<ICommentViewModel>();
7777

78-
public IReadOnlyCollection<IInlineAnnotationViewModel> Annotations { get; }
78+
public IReadOnlyList<IInlineAnnotationViewModel> Annotations { get; }
7979

8080
public IActorViewModel CurrentUser { get; set; }
8181
= new ActorViewModel { Login = "shana" };

src/GitHub.App/ViewModels/CommentThreadViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public CommentThreadViewModel(
5858
public IActorViewModel CurrentUser { get; private set; }
5959

6060
/// <inheritdoc/>
61-
public IReadOnlyCollection<IInlineAnnotationViewModel> Annotations { get; private set; }
61+
public IReadOnlyList<IInlineAnnotationViewModel> Annotations { get; private set; }
6262

6363
/// <inheritdoc/>
6464
IReadOnlyReactiveList<ICommentViewModel> ICommentThreadViewModel.Comments => comments;
@@ -96,7 +96,7 @@ protected IDisposable AddPlaceholder(ICommentViewModel placeholder)
9696
/// </summary>
9797
/// <param name="currentUser">The current user.</param>
9898
/// <param name="annotations"></param>
99-
protected Task InitializeAsync(ActorModel currentUser, IReadOnlyCollection<IInlineAnnotationViewModel> annotations)
99+
protected Task InitializeAsync(ActorModel currentUser, IReadOnlyList<IInlineAnnotationViewModel> annotations)
100100
{
101101
Annotations = annotations;
102102
Guard.ArgumentNotNull(currentUser, nameof(currentUser));

src/GitHub.App/ViewModels/PullRequestReviewCommentThreadViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public bool IsNewThread
7777

7878
/// <inheritdoc/>
7979
public async Task InitializeAsync(IPullRequestSession session,
80-
IReadOnlyCollection<IInlineAnnotationViewModel> annotations,
80+
IReadOnlyList<IInlineAnnotationViewModel> annotations,
8181
IPullRequestSessionFile file,
8282
IInlineCommentThreadModel thread,
8383
bool addPlaceholder)

src/GitHub.Exports.Reactive/ViewModels/ICommentThreadViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ public interface ICommentThreadViewModel : IViewModel
4141
/// <summary>
4242
/// Gets the annotations displayed.
4343
/// </summary>
44-
IReadOnlyCollection<IInlineAnnotationViewModel> Annotations { get; }
44+
IReadOnlyList<IInlineAnnotationViewModel> Annotations { get; }
4545
}
4646
}

src/GitHub.Exports.Reactive/ViewModels/IPullRequestReviewCommentThreadViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public interface IPullRequestReviewCommentThreadViewModel : ICommentThreadViewMo
5353
/// Whether to add a placeholder comment at the end of the thread.
5454
/// </param>
5555
Task InitializeAsync(IPullRequestSession session,
56-
IReadOnlyCollection<IInlineAnnotationViewModel> annotations,
56+
IReadOnlyList<IInlineAnnotationViewModel> annotations,
5757
IPullRequestSessionFile file,
5858
IInlineCommentThreadModel thread,
5959
bool addPlaceholder);

0 commit comments

Comments
 (0)