package com.live.cases.liveClientT.cloundClass;

import com.alibaba.fastjson.JSONObject;
import com.live.enums.ApiModele;
import com.live.enums.RequestType;
import com.live.enums.Terminal;
import com.live.xmutils.GetLiveCourseId;
import com.live.utils.XMBaseTest;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

/**
 * 直播课群发学生
 * by 张雨朦
 */

public class TestSendNotify2Student extends XMBaseTest {
    GetLiveCourseId tools = new GetLiveCourseId();

    @BeforeMethod
    public void beforeTest() {
        xmAppApi.setApiModule(ApiModele.CloudClass_apollo)
                .setApiName("API_sendNotify2Student")
                .setLoginUser("zhangYuM_b")
                .setTerminal(Terminal.B);
        super.beforeTest();
    }

    @Test
    public void getCourseDocList() {

        String id = tools.createCourse();

        JSONObject jsonObject = new JSONObject();
        jsonObject.put("liveCourseId",id);
        jsonObject.put("instId",xmAppApi.getLoginInfo().getInstId());

        xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers).assetsSuccess(true);
        JSONObject responseRes = xmAppApi.getBodyInJSON();
    }

}
