Skip to content

Commit

Permalink
Implement Issue Bynder#107 - add properties "options" and "id" to cla…
Browse files Browse the repository at this point in the history
…ss MetapropertiesQuery to support getting all metaproperties without options and retrieving individual metaproperties (with options if needed)
  • Loading branch information
Colin Manning committed Sep 26, 2023
1 parent bf9abb6 commit 813f3a2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/main/java/com/bynder/sdk/query/MetapropertyQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ public class MetapropertyQuery {
*/
@ApiField
private MediaType type;
/**
* Make it possible to get metaproperties without options, to avoid possible timeout if the number
* of metapropertiy/options is very large (e.g. with Stockholm National Museum taxonomies)
* @author Colin Manning - zetcom
*/
@ApiField
private Boolean options;
/**
* The id of a Metaproperty, to get the information for one specific metaproperty
* @author Colin Manning - zetcom
*/ @ApiField
private String id;

public Boolean getCount() {
return count;
Expand All @@ -44,4 +56,21 @@ public MetapropertyQuery setType(final MediaType type) {
this.type = type;
return this;
}

public Boolean getOptions() {
return options;
}

public MetapropertyQuery setOptions(final Boolean options) {
this.options = options;
return this;
}
public String getId() {
return id;
}

public MetapropertyQuery setId(final String id) {
this.id = id;
return this;
}
}

0 comments on commit 813f3a2

Please sign in to comment.