forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsEvaluationResultViewModel.cs
More file actions
43 lines (38 loc) · 919 Bytes
/
JsEvaluationResultViewModel.cs
File metadata and controls
43 lines (38 loc) · 919 Bytes
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
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using JavaScriptEngineSwitcher.Sample.Resources;
namespace JavaScriptEngineSwitcher.Sample.Logic.Models
{
/// <summary>
/// JS evaluation result view model
/// </summary>
public sealed class JsEvaluationResultViewModel
{
/// <summary>
/// Gets or sets a result value
/// </summary>
[Display(Name = "DisplayName_ResultValue", ResourceType = typeof(EvaluationStrings))]
[DataType(DataType.MultilineText)]
public string Value
{
get;
set;
}
/// <summary>
/// Gets or sets a list of errors
/// </summary>
public IList<JsEvaluationErrorViewModel> Errors
{
get;
set;
}
/// <summary>
/// Constructs an instance of JS evaluation result view model
/// </summary>
public JsEvaluationResultViewModel()
{
Value = string.Empty;
Errors = new List<JsEvaluationErrorViewModel>();
}
}
}