googlephotos
Version:
Library to make working with the Google Photos API easy
26 lines (20 loc) • 522 B
JavaScript
;
class ContentFilter {
constructor() {
this.includedContentCategories = [];
this.excludedContentCategories = [];
}
addIncludedContentCategories(cat) {
this.includedContentCategories.push(cat);
}
addExcludedContentCategories(cat) {
this.excludedContentCategories.push(cat);
}
toJSON() {
return {
includedContentCategories: this.includedContentCategories,
excludedContentCategories: this.excludedContentCategories,
};
}
}
module.exports = ContentFilter;