public PageResult(PageFilter pageFilter, IEnumerable <T> value, uint totalCount) { _value = value?.ToList(); PageFilter = pageFilter; TotalCount = totalCount; Validator .Begin(_value, nameof(_value)) .NotNull() .Map(PageFilter, nameof(PageFilter)) .NotDefault() .ThrowApiException(nameof(PageResult <T>), nameof(PageResult <T>)); }
public bool Equals(PageFilter other) { return(Skip == other.Skip && Take == other.Take); }