# SafetyScoreRequestParameters

Represents the parameters for which an aggregated safety score is being requested.

## SafetyScoreRequestParameters API

### `init`

An initializer to create an instance of SafetyScoreRequestParameters.

```swift
public init(
    period: SafetyScoreRequestPeriod,
    transportModes: SafetyScoreRequestTransportModeOption = .all,
    occupantRoles: SafetyScoreRequestOccupantRoleOption = .all
)
```

| Parameters     |                                                                                                                                                                                                                                                                                    |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| period         | The period for which an aggregated safety score will be requested. See [SafetyScoreRequestPeriod](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequestperiod).                                       |
| transportModes | The transport mode for for which an aggregated safety score will be requested. See [SafetyScoreRequestTransportModeOption](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequesttransportmodeoption). |
| occupantRoles  | The occupant roles for which an aggregated safety score will be requested. See [SafetyScoreRequestOccupantRoleOption](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequestoccupantroleoption).       |

### `period`

The period for which an aggregated safety score will be requested. See [SafetyScoreRequestPeriod](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequestperiod).

```swift
let period: SafetyScoreRequestPeriod
```

### `occupantRoles`

The occupant roles for which an aggregated safety score will be requested. See [SafetyScoreRequestOccupantRoleOption](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequestoccupantroleoption).

```swift
let occupantRoles: SafetyScoreRequestOccupantRoleOption
```

### `transportModes`

The transport mode for for which an aggregated safety score will be requested. See [SafetyScoreRequestTransportModeOption](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequesttransportmodeoption).

```swift
let transportModes: SafetyScoreRequestTransportModeOption
```
