[#190] sdk/object: Implement AddParentIDFilter method on SearchFilters

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-05 19:31:23 +03:00 committed by Alex Vanin
parent 3fb3cfd1a5
commit e4111ff3e7
2 changed files with 32 additions and 0 deletions

View file

@ -234,3 +234,7 @@ func (f *SearchFilters) AddChildfreeFilter() {
func (f *SearchFilters) AddNonChildfreeFilter() {
f.addChildFreeFilter(false)
}
func (f *SearchFilters) AddParentIDFilter(m SearchMatchType, id *ID) {
f.addReservedFilter(m, fKeyParent, id)
}