Winify – Diff between revs 15 and 28
?pathlinks?
Rev 15 | Rev 28 | |||
---|---|---|---|---|
1 | using System.Collections.Generic; |
1 | using System.Collections.Generic; |
|
2 | using System.Xml.Schema; |
2 | using System.Xml.Schema; |
|
3 | |
3 | |
|
4 | namespace Winify.Servers.Serialization |
4 | namespace Winify.Servers.Serialization |
|
5 | { |
5 | { |
|
6 | public class SerializationSuccess<T> : SerializationState |
6 | public class SerializationSuccess<T> : SerializationState |
|
7 | { |
7 | { |
|
8 | #region Public Enums, Properties and Fields |
8 | #region Public Enums, Properties and Fields |
|
9 | |
9 | |
|
10 | public T Result { get; } |
10 | public T Result { get; } |
|
11 | |
11 | |
|
12 | public List<ValidationEventArgs> ValidationEventArgs { get; } |
12 | public List<ValidationEventArgs> ValidationEventArgs { get; } |
|
13 | |
13 | |
|
14 | #endregion |
14 | #endregion |
|
15 | |
15 | |
|
16 | #region Constructors, Destructors and Finalizers |
16 | #region Constructors, Destructors and Finalizers |
|
17 | |
17 | |
|
18 | public SerializationSuccess() |
18 | public SerializationSuccess() |
|
19 | { |
19 | { |
|
20 | } |
20 | } |
|
21 | |
21 | |
|
22 | public SerializationSuccess(T result) : this() |
22 | public SerializationSuccess(T result) : this() |
|
23 | { |
23 | { |
|
24 | Result = result; |
24 | Result = result; |
|
25 | } |
25 | } |
|
26 | |
26 | |
|
27 | public SerializationSuccess(T result, |
27 | public SerializationSuccess(T result, |
|
28 | List<ValidationEventArgs> validationEventArgs) : this(result) |
28 | List<ValidationEventArgs> validationEventArgs) : this(result) |
|
29 | { |
29 | { |
|
30 | ValidationEventArgs = validationEventArgs; |
30 | ValidationEventArgs = validationEventArgs; |
|
31 | } |
31 | } |
|
32 | |
32 | |
|
33 | #endregion |
33 | #endregion |
|
34 | } |
34 | } |
|
35 | } |
35 | } |
|
36 | |
36 | |
|
37 |
|
37 |
|
|
38 | |
38 | |
|
39 | |
39 | |
|
40 | |
40 | |