mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
21 lines
1.4 KiB
Markdown
21 lines
1.4 KiB
Markdown
# Ratings
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
import { Ratings } from "@lukehagar/plexjs/sdk/models/operations";
|
|
|
|
let value: Ratings = {
|
|
image: "imdb://image.rating",
|
|
value: 9,
|
|
type: "audience",
|
|
};
|
|
```
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description | Example |
|
|
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
|
|
| `image` | *string* | :heavy_check_mark: | The image or reference for the rating. | imdb://image.rating |
|
|
| `value` | *number* | :heavy_check_mark: | The rating value. | 9 |
|
|
| `type` | *string* | :heavy_check_mark: | The type of rating (e.g., audience, critic). | audience | |