mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-30 14:44:28 +02:00

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
23 lines
465 B
Python
23 lines
465 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class SocialField(BaseModel):
|
|
"""
|
|
Implements the fields for a social network link.
|
|
"""
|
|
|
|
name: str
|
|
url: str
|
|
|
|
|
|
class SocialsResponseModel(BaseModel):
|
|
"""
|
|
A Pydantic BaseModel that represents a dictionary of social links.
|
|
"""
|
|
|
|
socials: list[SocialField]
|
|
"""
|
|
A dictionary where the keys are the names of the social networks, and
|
|
the values are the links to the profiles or pages.
|
|
"""
|