-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAllowedResult.cs
More file actions
75 lines (68 loc) · 1.3 KB
/
AllowedResult.cs
File metadata and controls
75 lines (68 loc) · 1.3 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using System.Runtime.CompilerServices;
namespace TradingPlatform.BusinessLayer;
/// <summary>
/// The allowed result.
/// </summary>
public sealed class AllowedResult
{
[CompilerGenerated]
private TradingOperationStatus 놴녠;
[CompilerGenerated]
private string 놴놠;
/// <summary>
/// Gets the status.
/// </summary>
public TradingOperationStatus Status
{
[CompilerGenerated]
get
{
return 놴녠;
}
[CompilerGenerated]
private set
{
놴녠 = value;
}
}
/// <summary>
/// Gets the reason.
/// </summary>
public string Reason
{
[CompilerGenerated]
get
{
return 놴놠;
}
[CompilerGenerated]
private set
{
놴놠 = value;
}
}
/// <summary>
/// Get the allowed result.
/// </summary>
/// <returns>An AllowedResult.</returns>
public static AllowedResult GetAllowedResult()
{
return new AllowedResult
{
Status = TradingOperationStatus.Allowed
};
}
/// <summary>
/// Gets the not allowed result.
/// </summary>
/// <param name="reason">The reason.</param>
/// <returns>An AllowedResult.</returns>
public static AllowedResult GetNotAllowedResult(string reason = "")
{
return new AllowedResult
{
Status = TradingOperationStatus.NotAllowed,
Reason = reason
};
}
}