Permalink
Browse files

Enumeration for Knockout CompareResult status

  • Loading branch information...
1 parent 24ce066 commit a64ec9b5f9c6e7aa7c7685d180ff6737dc64ab4b @michaelaird committed Sep 18, 2012
Showing with 35 additions and 27 deletions.
  1. +35 −27 src/Libraries/Knockout/CompareResult.cs
@@ -1,27 +1,35 @@
-// CompareResult.cs
-// Script#/Libraries/Knockout
-// This source code is subject to terms and conditions of the Apache License, Version 2.0.
-//
-
-using System;
-using System.Runtime.CompilerServices;
-
-namespace KnockoutApi {
-
- [Imported]
- [IgnoreNamespace]
- public class CompareResult<T> {
-
- [IntrinsicProperty]
- public string Status {
- get;
- set;
- }
-
- [IntrinsicProperty]
- public T Value {
- get;
- set;
- }
- }
-}
+// CompareResult.cs
+// Script#/Libraries/Knockout
+// This source code is subject to terms and conditions of the Apache License, Version 2.0.
+//
+
+using System;
+using System.Runtime.CompilerServices;
+
+namespace KnockoutApi {
+
+ [Imported]
+ [IgnoreNamespace]
+ public class CompareResult<T> {
+
+ [IntrinsicProperty]
+ public CompareResultStatus Status
+ {
+ get;
+ set;
+ }
+
+ [IntrinsicProperty]
+ public T Value {
+ get;
+ set;
+ }
+ }
+
+ [NamedValues]
+ public enum CompareResultStatus{
+ added,
+ deleted,
+ retained
+ }
+}

0 comments on commit a64ec9b

Please sign in to comment.