|
@@ -146,7 +146,14 @@ public class ClassRepository extends BaseRepository {
|
|
|
}
|
|
|
|
|
|
public void queryNoJoinStu(String roomId, final ResultCallback<List<ClassMember>> callBack) {
|
|
|
- sealClassService.queryNoJoinStu(roomId).enqueue(new CallBackWrapper<List<ClassMember>>(callBack));
|
|
|
+
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ try {
|
|
|
+ jsonObject.put("roomId", roomId);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ sealClassService.queryNoJoinStu(RequestBodyUtil.convertToRequestBodyJson(jsonObject.toString())).enqueue(new CallBackWrapper<List<ClassMember>>(callBack));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -416,12 +423,12 @@ public class ClassRepository extends BaseRepository {
|
|
|
* @param callBack
|
|
|
*/
|
|
|
public void createWhiteBoard(String roomId, ResultCallback<WhiteCreateBean> callBack) {
|
|
|
- JSONObject jsonObject =new JSONObject();
|
|
|
- try{
|
|
|
- jsonObject.put("name","Page1");
|
|
|
- jsonObject.put("userNum",0);
|
|
|
- jsonObject.put("courseScheduleId",roomId);
|
|
|
- }catch (Exception e){
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ try {
|
|
|
+ jsonObject.put("name", "Page1");
|
|
|
+ jsonObject.put("userNum", 0);
|
|
|
+ jsonObject.put("courseScheduleId", roomId);
|
|
|
+ } catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
whiteBoardService.hereWhiteCreat(RequestBodyUtil.convertToRequestBodyJson(jsonObject.toString()))
|
|
@@ -432,6 +439,7 @@ public class ClassRepository extends BaseRepository {
|
|
|
protected void onSuccess(WhiteCreateBean data) {
|
|
|
callBack.onSuccess(data);
|
|
|
}
|
|
|
+
|
|
|
@Override
|
|
|
public void onError(Throwable e) {
|
|
|
super.onError(e);
|