diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2018-07-21 22:42:50 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2018-07-21 22:42:50 -0700 |
commit | fafa1140f3e8eedcb0f00b25c7891093df5fbf43 (patch) | |
tree | 5a0dea7fdc11176115283bbd56ff2137130afc7b /src/main/java/com/p4square/groupsindexer/model/SearchField.java |
Initial commit of groups search lambdas
Diffstat (limited to 'src/main/java/com/p4square/groupsindexer/model/SearchField.java')
-rw-r--r-- | src/main/java/com/p4square/groupsindexer/model/SearchField.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/main/java/com/p4square/groupsindexer/model/SearchField.java b/src/main/java/com/p4square/groupsindexer/model/SearchField.java new file mode 100644 index 0000000..454b082 --- /dev/null +++ b/src/main/java/com/p4square/groupsindexer/model/SearchField.java @@ -0,0 +1,52 @@ +package com.p4square.groupsindexer.model; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; + +/** + * SearchField describes a pulldown field and its options. + */ +public class SearchField { + + @JsonProperty("id") + private String id; + + @JsonProperty("label") + private String label; + + @JsonProperty("values") + private List<StringPair> values; + + public SearchField() { } + + public SearchField(String id, String label, List<StringPair> values) { + this.id = id; + this.label = label; + this.values = values; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public List<StringPair> getValues() { + return values; + } + + public void setValues(List<StringPair> values) { + this.values = values; + } +} |