mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
9f11ccb3ee
- Moved PaymentMethod and other enums from models to enums.py for better organization. - Refactored imports in various files to reflect the new structure. - Created new model files for ads, anonymous numbers, giveaways, marketplace, purchases, and tonapi. - Removed the old models.py file to clean up the codebase. - Updated all relevant imports in the codebase to use the new model locations.
27 lines
643 B
Python
27 lines
643 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class LoginCodeResult:
|
|
number: str
|
|
code: str | None
|
|
active_sessions: int
|
|
|
|
def __repr__(self) -> str:
|
|
code_str = f"'{self.code}'" if self.code else "None"
|
|
return f"LoginCodeResult(number='{self.number}', code={code_str}, active_sessions={self.active_sessions})"
|
|
|
|
|
|
@dataclass
|
|
class TerminateSessionsResult:
|
|
number: str
|
|
message: str | None
|
|
|
|
def __repr__(self) -> str:
|
|
return f"TerminateSessionsResult(number='{self.number}', message={self.message!r})"
|
|
|
|
|
|
__all__ = ["LoginCodeResult", "TerminateSessionsResult"]
|