package com.sikey.wa04.api.message;

import com.sikey.wa04.business.application.service.message.MessagingPublishService;
import com.sikey.wa04.business.infrastructure.dto.request.messaging.VideoCallHangupRequest;
import com.sikey.wa04.common.dto.message.VideoCallInNoticeMessage;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class OfflineMessageLoadingSchedulerTests {
    @Resource
    private MessagingPublishService messagingPublishService;

    @Test
    public void publishOfflineTest() {
        messagingPublishService.publishOffline();
    }

    @Test
    public void dialTest() {
        String videoCallToken = "007eJxSYNBi9xU58I7306wtYnMXluzexHJSvb4qP0skOLVl+4mqOZkKDJZGySbGphZJlmmWFiaGlmmWiYYGKcYmpqmmlonm5mmGxYuOpQvwMTDcjEhgYmRgZGBhYGQA8ZnAJDOYZAGTRgwh3vGO4e4puXm+npYR8Wkm5oZJRomGugappqm6JuaWZroWliaWuuaJJslpqYnJpilpxowMBoAAAAD//4/vKpY=";
        VideoCallInNoticeMessage message = new VideoCallInNoticeMessage();
        message.setContent(new VideoCallInNoticeMessage.VideoCallInNoticeContent().setVideoCallToken(videoCallToken));
        System.out.println(message);
    }
}
