@@ -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