Skip to content

Commit 2f665c7

Browse files
authored
Add: FindOptions.Backwards definition (#1457)
1 parent 2555b9e commit 2f665c7

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

src/Neo.SmartContract.Framework/Services/FindOptions.cs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,44 @@ namespace Neo.SmartContract.Framework.Services
1616
[Flags]
1717
public enum FindOptions : byte
1818
{
19+
/// <summary>
20+
/// No option is set. The results will be an iterator of (key, value).
21+
/// </summary>
1922
None = 0,
2023

24+
/// <summary>
25+
/// Indicates that only keys need to be returned. The results will be an iterator of keys.
26+
/// </summary>
2127
KeysOnly = 1 << 0,
28+
29+
/// <summary>
30+
/// Indicates that the prefix byte of keys should be removed before return.
31+
/// </summary>
2232
RemovePrefix = 1 << 1,
33+
34+
/// <summary>
35+
/// Indicates that only values need to be returned. The results will be an iterator of values.
36+
/// </summary>
2337
ValuesOnly = 1 << 2,
38+
39+
/// <summary>
40+
/// Indicates that values should be deserialized before return.
41+
/// </summary>
2442
DeserializeValues = 1 << 3,
43+
44+
/// <summary>
45+
/// Indicates that only the field 0 of the deserialized values need to be returned. This flag must be set together with <see cref="DeserializeValues"/>.
46+
/// </summary>
2547
PickField0 = 1 << 4,
26-
PickField1 = 1 << 5
48+
49+
/// <summary>
50+
/// Indicates that only the field 1 of the deserialized values need to be returned. This flag must be set together with <see cref="DeserializeValues"/>.
51+
/// </summary>
52+
PickField1 = 1 << 5,
53+
54+
/// <summary>
55+
/// Indicates that results should be returned in backwards (descending) order.
56+
/// </summary>
57+
Backwards = 1 << 7,
2758
}
2859
}

0 commit comments

Comments
 (0)