chaturbate_poller.models
Pydantic models for the Chaturbate Events API.
Classes
Base model with custom configuration for all models. |
|
Enumeration for the media type. |
|
Enumeration for the user's gender. |
|
Enumeration for the user's subgender. |
|
Model for media objects. |
|
Model for chat messages. |
|
Model for tips. |
|
Model for user information. |
|
Model for event data. |
|
Model for an event. |
|
Model for the API response. |
Module Contents
- class chaturbate_poller.models.BaseModelWithEnums(/, **data: Any)[source]
Bases:
pydantic.BaseModel
Base model with custom configuration for all models.
- model_config
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class chaturbate_poller.models.MediaType[source]
Bases:
str
,enum.Enum
Enumeration for the media type.
- PHOTOS = 'photos'
The media type for photos.
- Type:
str
- VIDEOS = 'videos'
The media type for videos.
- Type:
str
- class chaturbate_poller.models.Gender[source]
Bases:
str
,enum.Enum
Enumeration for the user’s gender.
- MALE = 'm'
The gender for male users.
- Type:
str
- FEMALE = 'f'
The gender for female users.
- Type:
str
- TRANS = 't'
The gender for transgender users.
- Type:
str
- COUPLE = 'c'
The gender for couples.
- Type:
str
- class chaturbate_poller.models.Subgender[source]
Bases:
str
,enum.Enum
Enumeration for the user’s subgender.
- NONE = ''
The subgender for users with no subgender.
- Type:
str
- TF = 'tf'
The subgender for transfeminine users.
- Type:
str
- TM = 'tm'
The subgender for transmasculine users.
- Type:
str
- TN = 'tn'
The subgender for transneutral users.
- Type:
str
- class chaturbate_poller.models.Media(/, **data: Any)[source]
Bases:
BaseModelWithEnums
Model for media objects.
- id: int = None
The media ID.
- Type:
int
- name: str = None
The media name.
- Type:
str
- tokens: int = None
The media tokens.
- Type:
int
- class chaturbate_poller.models.Message(/, **data: Any)[source]
Bases:
BaseModelWithEnums
Model for chat messages.
- color: str = None
The message color.
- Type:
str
- bg_color: str | None = None
The message background color.
- Type:
str | None
- message: str = None
The message content.
- Type:
str
- font: str = None
The font used in the message.
- Type:
str
- from_user: str | None = None
The sender of the message.
- Type:
str | None
- to_user: str | None = None
The recipient of the message.
- Type:
str | None
- class chaturbate_poller.models.Tip(/, **data: Any)[source]
Bases:
BaseModelWithEnums
Model for tips.
- tokens: int = None
The number of tokens in the tip.
- Type:
int
- is_anon: bool = None
Whether the tip is anonymous.
- Type:
bool
- message: str = None
A message accompanying the tip.
- Type:
str
- class chaturbate_poller.models.User(/, **data: Any)[source]
Bases:
BaseModelWithEnums
Model for user information.
- username: str = None
The username.
- Type:
str
- in_fanclub: bool = None
Whether the user is in the fanclub.
- Type:
bool
- has_tokens: bool = None
Whether the user has tokens.
- Type:
bool
- is_mod: bool = None
Whether the user is a moderator.
- Type:
bool
- recent_tips: str = None
The user’s recent tips.
- Type:
str
- class chaturbate_poller.models.EventData(/, **data: Any)[source]
Bases:
BaseModelWithEnums
Model for event data.
- broadcaster: str | None = None
The broadcaster.
- Type:
str | None
- subject: str | None = None
The subject of the event.
- Type:
str | None
- class chaturbate_poller.models.Event(/, **data: Any)[source]
Bases:
BaseModelWithEnums
Model for an event.
- method: str = None
The event method.
- Type:
str
- id: str = None
The unique identifier for the event.
- Type:
str
- class chaturbate_poller.models.EventsAPIResponse(/, **data: Any)[source]
Bases:
BaseModelWithEnums
Model for the API response.
- next_url: str = None
The URL for the next page of results.
- Type:
str