# communication/urls.py
from django.urls import path
from . import views

app_name = 'communication'

urlpatterns = [
    # Announcements
    path('announcements/', views.AnnouncementListView.as_view(), name='announcement_list'),
    path('announcements/<int:pk>/', views.AnnouncementDetailView.as_view(), name='announcement_detail'),
    
    # SMS
    path('sms/', views.SMSMessageListView.as_view(), name='sms_list'),
    path('sms/compose/', views.SMSComposeView.as_view(), name='sms_compose'),
    path('sms/<int:pk>/', views.SMSMessageDetailView.as_view(), name='sms_detail'),
    
    # Parent Communication
    path('parents/', views.ParentCommunicationView.as_view(), name='parent_communication'),
    path('parents/<int:parent_id>/send/', views.send_message_to_parent, name='send_parent_message'),
]