mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 14:14:29 +02:00
24 lines
487 B
Python
24 lines
487 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class SocialFields(BaseModel):
|
|
"""
|
|
Implements the fields for a social network link.
|
|
"""
|
|
|
|
name: str
|
|
url: str
|
|
preferred: bool
|
|
|
|
|
|
class SocialsResponseModel(BaseModel):
|
|
"""
|
|
A Pydantic BaseModel that represents a dictionary of social links.
|
|
"""
|
|
|
|
socials: list[SocialFields]
|
|
"""
|
|
A dictionary where the keys are the names of the social networks, and
|
|
the values are the links to the profiles or pages.
|
|
"""
|