mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-30 06:34:36 +02:00

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
37 lines
633 B
Python
37 lines
633 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class WalletFields(BaseModel):
|
|
"""
|
|
Implements the fields for a crypto wallet.
|
|
"""
|
|
|
|
name: str
|
|
address: str
|
|
|
|
|
|
class LinkFields(BaseModel):
|
|
"""
|
|
Implements the fields for a donation link.
|
|
"""
|
|
|
|
name: str
|
|
url: str
|
|
|
|
|
|
class DonationFields(BaseModel):
|
|
"""
|
|
A Pydantic BaseModel that represents all the donation links and wallets.
|
|
"""
|
|
|
|
wallets: list[WalletFields]
|
|
links: list[LinkFields]
|
|
|
|
|
|
class DonationsResponseModel(BaseModel):
|
|
"""
|
|
A Pydantic BaseModel that represents a dictionary of donation links.
|
|
"""
|
|
|
|
donations: DonationFields
|