---
url: https://docs.moqtail.dev/ts/api/model/classes/MaxFilterRanges.md
---
# Class: MaxFilterRanges

Limits the total number of Ranges the peer may have across all Range filter parameters
of a single subscription or fetch. Zero, the default when absent, means the peer may
not send Range filters at all.

## Implements

* [`Parameter`](../interfaces/Parameter.md)

## Constructors

### Constructor

> **new MaxFilterRanges**(`value`): `MaxFilterRanges`

#### Parameters

##### value

`bigint`

#### Returns

`MaxFilterRanges`

## Properties

### value

> `readonly` **value**: `bigint`

***

### TYPE

> `readonly` `static` **TYPE**: [`MaxFilterRanges`](../enumerations/SetupOptionType.md#maxfilterranges) = `SetupOptionType.MaxFilterRanges`

## Methods

### toKeyValuePair()

> **toKeyValuePair**(): [`KeyValuePair`](KeyValuePair.md)

#### Returns

[`KeyValuePair`](KeyValuePair.md)

#### Implementation of

[`Parameter`](../interfaces/Parameter.md).[`toKeyValuePair`](../interfaces/Parameter.md#tokeyvaluepair)

***

### fromKeyValuePair()

> `static` **fromKeyValuePair**(`pair`): `MaxFilterRanges` | `undefined`

#### Parameters

##### pair

[`KeyValuePair`](KeyValuePair.md)

#### Returns

`MaxFilterRanges` | `undefined`
