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

Commit 52736ff

Browse files
committed
Move properties after methods
1 parent 7644a56 commit 52736ff

File tree

2 files changed

+81
-81
lines changed

2 files changed

+81
-81
lines changed

src/GitHub.InlineReviews/Services/PullRequestSession.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,6 @@ public PullRequestSession(
4848
Repository = repository;
4949
}
5050

51-
/// <inheritdoc/>
52-
public bool IsCheckedOut
53-
{
54-
get { return isCheckedOut; }
55-
internal set { this.RaiseAndSetIfChanged(ref isCheckedOut, value); }
56-
}
57-
58-
/// <inheritdoc/>
59-
public IAccount User { get; }
60-
61-
/// <inheritdoc/>
62-
public IPullRequestModel PullRequest { get; private set; }
63-
64-
/// <inheritdoc/>
65-
public ILocalRepositoryModel Repository { get; }
66-
67-
IEnumerable<string> FilePaths
68-
{
69-
get { return PullRequest.ChangedFiles.Select(x => x.FileName); }
70-
}
71-
7251
/// <inheritdoc/>
7352
public async Task AddComment(IPullRequestReviewCommentModel comment)
7453
{
@@ -285,5 +264,26 @@ int GetUpdatedLineNumber(IInlineCommentThreadModel thread, IEnumerable<DiffChunk
285264

286265
return -1;
287266
}
267+
268+
/// <inheritdoc/>
269+
public bool IsCheckedOut
270+
{
271+
get { return isCheckedOut; }
272+
internal set { this.RaiseAndSetIfChanged(ref isCheckedOut, value); }
273+
}
274+
275+
/// <inheritdoc/>
276+
public IAccount User { get; }
277+
278+
/// <inheritdoc/>
279+
public IPullRequestModel PullRequest { get; private set; }
280+
281+
/// <inheritdoc/>
282+
public ILocalRepositoryModel Repository { get; }
283+
284+
IEnumerable<string> FilePaths
285+
{
286+
get { return PullRequest.ChangedFiles.Select(x => x.FileName); }
287+
}
288288
}
289289
}

src/GitHub.InlineReviews/ViewModels/CommentViewModel.cs

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -89,66 +89,6 @@ public CommentViewModel(
8989
{
9090
}
9191

92-
/// <inheritdoc/>
93-
public int Id { get; private set; }
94-
95-
/// <inheritdoc/>
96-
public string Body
97-
{
98-
get { return body; }
99-
set { this.RaiseAndSetIfChanged(ref body, value); }
100-
}
101-
102-
/// <inheritdoc/>
103-
public string ErrorMessage
104-
{
105-
get { return this.errorMessage; }
106-
private set { this.RaiseAndSetIfChanged(ref errorMessage, value); }
107-
}
108-
109-
/// <inheritdoc/>
110-
public CommentEditState EditState
111-
{
112-
get { return state; }
113-
private set { this.RaiseAndSetIfChanged(ref state, value); }
114-
}
115-
116-
/// <inheritdoc/>
117-
public bool IsReadOnly
118-
{
119-
get { return isReadOnly; }
120-
set { this.RaiseAndSetIfChanged(ref isReadOnly, value); }
121-
}
122-
123-
/// <inheritdoc/>
124-
public DateTimeOffset UpdatedAt
125-
{
126-
get { return updatedAt; }
127-
private set { this.RaiseAndSetIfChanged(ref updatedAt, value); }
128-
}
129-
130-
/// <summary>
131-
/// Gets the current user.
132-
/// </summary>
133-
public IAccount CurrentUser { get; }
134-
135-
/// <summary>
136-
/// Gets the thread that the comment is a part of.
137-
/// </summary>
138-
public ICommentThreadViewModel Thread { get; }
139-
140-
/// <inheritdoc/>
141-
public IAccount User { get; }
142-
143-
/// <inheritdoc/>
144-
public ReactiveCommand<object> BeginEdit { get; }
145-
146-
/// <inheritdoc/>
147-
public ReactiveCommand<object> CancelEdit { get; }
148-
149-
/// <inheritdoc/>
150-
public ReactiveCommand<Unit> CommitEdit { get; }
151-
15292
/// <summary>
15393
/// Creates a placeholder comment which can be used to add a new comment to a thread.
15494
/// </summary>
@@ -208,5 +148,65 @@ async Task DoCommitEdit(object unused)
208148
ErrorMessage = e.Message;
209149
}
210150
}
151+
152+
/// <inheritdoc/>
153+
public int Id { get; private set; }
154+
155+
/// <inheritdoc/>
156+
public string Body
157+
{
158+
get { return body; }
159+
set { this.RaiseAndSetIfChanged(ref body, value); }
160+
}
161+
162+
/// <inheritdoc/>
163+
public string ErrorMessage
164+
{
165+
get { return this.errorMessage; }
166+
private set { this.RaiseAndSetIfChanged(ref errorMessage, value); }
167+
}
168+
169+
/// <inheritdoc/>
170+
public CommentEditState EditState
171+
{
172+
get { return state; }
173+
private set { this.RaiseAndSetIfChanged(ref state, value); }
174+
}
175+
176+
/// <inheritdoc/>
177+
public bool IsReadOnly
178+
{
179+
get { return isReadOnly; }
180+
set { this.RaiseAndSetIfChanged(ref isReadOnly, value); }
181+
}
182+
183+
/// <inheritdoc/>
184+
public DateTimeOffset UpdatedAt
185+
{
186+
get { return updatedAt; }
187+
private set { this.RaiseAndSetIfChanged(ref updatedAt, value); }
188+
}
189+
190+
/// <summary>
191+
/// Gets the current user.
192+
/// </summary>
193+
public IAccount CurrentUser { get; }
194+
195+
/// <summary>
196+
/// Gets the thread that the comment is a part of.
197+
/// </summary>
198+
public ICommentThreadViewModel Thread { get; }
199+
200+
/// <inheritdoc/>
201+
public IAccount User { get; }
202+
203+
/// <inheritdoc/>
204+
public ReactiveCommand<object> BeginEdit { get; }
205+
206+
/// <inheritdoc/>
207+
public ReactiveCommand<object> CancelEdit { get; }
208+
209+
/// <inheritdoc/>
210+
public ReactiveCommand<Unit> CommitEdit { get; }
211211
}
212212
}

0 commit comments

Comments
 (0)