from rest_framework.views import APIView
from rest_framework.response import Response
# from threading import Thread
from rest_framework.permissions import AllowAny
# from apps.calls.services import NotificationService


class SendMessageNotificationTest(APIView):
    """
    A test API view to send a message notification for testing purposes.
    """
    permission_classes = [AllowAny]

    def get(self, request, *args, **kwargs):

        # Thread(NotificationService.send_message_notification(
        #     request.user,
        #     title="test",
        #     message="This is a webhook test message notification.",
        # )).start()

        return Response({"status": "Notification sent for testing."}, status=200)
