Skip to content

Commit

Permalink
Merge pull request #7 from pixlee/CR/3376/KB
Browse files Browse the repository at this point in the history
Add missing boolean filters
  • Loading branch information
kj13ennett authored Jun 26, 2019
2 parents a7ad146 + 01a93fa commit 3a5ad3e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public class PXLAlbumFilterOptions {
public Boolean hasActionLink;
public Date submittedDateStart;
public Date submittedDateEnd;
public Boolean hasPermission;
public Boolean hasProduct;
public Boolean inStockOnly;

/***
* Generates the JSON string representing the filter options.
Expand Down Expand Up @@ -62,6 +65,9 @@ public String toParamString() {
if (submittedDateEnd != null) {
jsonFilters.put("submitted_date_end", Math.round(submittedDateEnd.getTime() / 1000));
}
jsonFilters.putOpt("has_permission", hasPermission);
jsonFilters.putOpt("has_product", hasProduct);
jsonFilters.putOpt("in_stock_only", inStockOnly);
} catch (JSONException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 3a5ad3e

Please sign in to comment.