MDPaginationFilter

public class MDPaginationFilter : Encodable

A superclass for filters used during search

  • The maximum number of results to be returned by the MangaDex API

    Note

    This cannot be greater than 100. If nil, the API defaults to 10 results

    Declaration

    Swift

    public var limit: Int?
  • The offset of the first result to be returned by the MangaDex API

    This is used for paging when there are too many results to return in one response

    Declaration

    Swift

    public var offset: Int?
  • Convenience function to create an empty filter

    Declaration

    Swift

    public init()
  • Custom encode implementation

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws