mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 02:24:16 +00:00
29 lines
583 B
Plaintext
29 lines
583 B
Plaintext
---
|
|
id: events
|
|
title: EventsModel
|
|
sidebar_label: EventsModel
|
|
---
|
|
|
|
## EventsModel
|
|
|
|
The `EventsModel` class provides static methods for retrieving event data.
|
|
|
|
**Class Overview:**
|
|
|
|
The `EventsModel` class offers methods for retrieving featured events and data for a specific event.
|
|
|
|
### Static Methods
|
|
|
|
* `getFeatured()`
|
|
|
|
Retrieves featured events.
|
|
|
|
* Returns: A Promise that resolves with the featured events data.
|
|
|
|
* `data(id)`
|
|
|
|
Retrieves data for a specific event.
|
|
|
|
* `id`: *string* The ID of the event.
|
|
* Returns: A Promise that resolves with the event data.
|