Files
cai-server/ruoyi-cai/src/main/java/com/ruoyi/cai/trd/ImMsgGen.java
张良(004796) 28623f17d1 直播
2024-01-12 17:50:50 +08:00

26 lines
681 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.ruoyi.cai.trd;
public class ImMsgGen {
/**
* 通话通知
* @param status
* @param from
* @param to
* @param callTime
*/
public static ImDataRes callNotice(int status,Long from,Long to,long callTime){
ImDataRes imDataRes = new ImDataRes();
imDataRes.setType(15);
ImDataRes.ImData imData = new ImDataRes.ImData();
imData.setCallType(1); // 通话状态1 取消 2 拒绝 3 超时 4 已通话
imData.setStatus(status);
imData.setFromUid(from);
imData.setToUid(to);
imData.setCallTime(callTime);
imDataRes.setData(imData);
return imDataRes;
}
}