"""
Classroom API - Legacy Import Wrapper

This file provides backward compatibility for code that imports from classroom_api.
All functionality has been moved to the classroom/ module.

Usage (new):
    from classroom import router as classroom_router

Usage (legacy, still works):
    from classroom_api import router
"""

# Re-export everything from the new modular structure
from classroom import (
    # Main router
    router,
    # Session storage
    sessions,
    init_db_if_needed,
    DB_ENABLED,
    # WebSocket
    ws_manager,
    notify_phase_change,
    notify_session_ended,
    # Models
    CreateSessionRequest,
    SessionResponse,
    TimerStatus,
    TemplateCreate,
    TemplateResponse,
    CreateHomeworkRequest,
    HomeworkResponse,
    CreateMaterialRequest,
    MaterialResponse,
    SessionSummaryResponse,
    TeacherAnalyticsResponse,
    ReflectionCreate,
    ReflectionResponse,
    FeedbackCreate,
    FeedbackResponse,
    TeacherSettingsResponse,
    TeacherContextResponse,
)

# For any direct imports of internal components
from classroom.services.persistence import (
    get_session_or_404,
    persist_session,
    SessionLocal,
)

from classroom.routes.sessions import build_session_response

__all__ = [
    "router",
    "sessions",
    "init_db_if_needed",
    "DB_ENABLED",
    "ws_manager",
    "notify_phase_change",
    "notify_session_ended",
    "CreateSessionRequest",
    "SessionResponse",
    "TimerStatus",
    "TemplateCreate",
    "TemplateResponse",
    "CreateHomeworkRequest",
    "HomeworkResponse",
    "CreateMaterialRequest",
    "MaterialResponse",
    "SessionSummaryResponse",
    "TeacherAnalyticsResponse",
    "ReflectionCreate",
    "ReflectionResponse",
    "FeedbackCreate",
    "FeedbackResponse",
    "TeacherSettingsResponse",
    "TeacherContextResponse",
    "get_session_or_404",
    "persist_session",
    "SessionLocal",
    "build_session_response",
]
