Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [JsonConverter(typeof(StringEnumConverter))]
- public enum Comparison
- {
- Eq = 1,
- Lt,
- Lte,
- Gt,
- Gte
- }
- public class Condition
- {
- public List<Condition> And { get; set; }
- public List<Condition> Or { get; set; }
- public Comparison? Comparison { get; set; }
- public String ActivityId { get; set; }
- public String ComparisonData { get; set; }
- }
- {
- "and":[
- {
- "comparison":"Eq",
- "activityId":"b4bafd22-c55c-4801-9112-ac6edbe09200",
- "comparisonData":"123546"
- },
- {
- "or":[
- {
- "comparison":"Lte",
- "activityId":"2727c916-8636-4c37-ae78-00df63984c2b",
- "comparisonData":"2"
- },
- {
- "comparison":"Gt",
- "activityId":"ba44848b-99f1-4508-b443-fb46b936a106",
- "comparisonData":"7"
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement