Skip to content

Commit d1f23fb

Browse files
committed
Add sign field for ConditionOperation enum.
1 parent a9e782b commit d1f23fb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/src/api/models/condition.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ enum ConditionOperation {
5151
return 'less than';
5252
}
5353
}
54+
55+
/// short description of the operation
56+
String get sign {
57+
switch (this) {
58+
case ConditionOperation.EqualsTo:
59+
return '==';
60+
case ConditionOperation.NotEqualsTo:
61+
return '!=';
62+
case ConditionOperation.GreaterThan:
63+
return '>';
64+
case ConditionOperation.LessThan:
65+
return '<';
66+
}
67+
}
5468
}
5569

5670
/// join operator for complex conditions

0 commit comments

Comments
 (0)