This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
GitHub.Exports.Reactive/ViewModels Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff 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" } ;
Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments