package com.daya.live_teaching.api;


import com.cooleshow.base.data.net.BaseResponse;
import com.daya.live_teaching.model.WhiteCreateBean;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * 白板API
 */
public interface WhiteBoardApi {
    String TAG = "WhiteBoardApi";
    String HERE_WHITE_URL = "https://cloudcapiv4.herewhite.com/";
    String CREATE_ROOM = "room?token=%s";
    String JOIN_ROOM = "room/join?uuid=%s&token=%s";
    String DELETE_ROOM = "room/close?token=%s";
    // 参考服务提供商文档，token写在客户端是不安全的，你“可以”将 Mini Token 写入业务服务器的代码中，或服务端的配置文件中。https://developer.herewhite.com/#/zh-CN/v2/concept
    String MINI_TOKEN = "WHITEcGFydG5lcl9pZD02dFBKT1lzMG52MHFoQzN2Z1BRUXVmN0t0RnVOVGl0bzBhRFAmc2lnPTMyZTRiNTMwNjkyN2RhN2I3NzI4MjMwOTJlZTNmNDJhNWI3MGMyMjU6YWRtaW5JZD0yMTEmcm9sZT1taW5pJmV4cGlyZV90aW1lPTE1ODkzNzY1MjEmYWs9NnRQSk9ZczBudjBxaEMzdmdQUVF1ZjdLdEZ1TlRpdG8wYURQJmNyZWF0ZV90aW1lPTE1NTc4MTk1Njkmbm9uY2U9MTU1NzgxOTU2OTQyNTAw";
    String WHITE_BOARD_KEY = "rongRTCWhite";
    String WHITE_BOARD_SCENE_PATH = "/DAYA";
    String WHITE_BOARD_INIT_SCENE_PATH = "/init";

    /**
     * 创建白板房间
     *
     * @param
     * @return
     */
    @POST(LiveTeachingUrls.hereWhite)
    Observable<BaseResponse<WhiteCreateBean>> hereWhiteCreat(@Body RequestBody requestBody);

    /**
     * 提交考勤申述
     *
     * @return
     */
    @FormUrlEncoded
    @POST("api-teacher/teacherAttendance/addComplaints")
    Observable<BaseResponse<String>> addComplaints(@Field("courseScheduleId") String courseScheduleId, @Field("url") String url, @Field("content") String content, @Field("complaintsType") String complaintsType);

}
