/// <summary> /// Checks for at least one filter in the GetCategory request. /// See GetCategory Post https://developers.neto.com.au/documentation/engineers/api-documentation/categories/getcategory /// </summary> /// <returns></returns> internal override bool isValid() { if (DatePostedFrom != DateTime.MinValue) { return(true); } if (DatePostedTo != DateTime.MinValue) { return(true); } if (DateUpdatedFrom != DateTime.MinValue) { return(true); } if (DateUpdatedTo != DateTime.MinValue) { return(true); } int requiredFilterCount = CategoryID.NullSafeLength() + ParentCategoryID.NullSafeLength() + CategoryName.NullSafeLength(); if (requiredFilterCount != 0) { return(true); } throw new NetoRequestException("At least one filter is required in the GetCategory request"); }