🎨 #3598 【企业微信】 会话存档接口添加对音视频通话(voiptext)消息类型的支持

This commit is contained in:
Copilot
2025-12-04 19:43:15 +08:00
committed by GitHub
parent 219a8f4f36
commit 4e46486f2c

View File

@@ -202,6 +202,12 @@ public class WxCpChatModel implements Serializable {
@SerializedName("sphfeed")
private SphFeed sphFeed;
/**
* 音视频通话消息
*/
@SerializedName("voiptext")
private VoipText voipText;
/**
* From json wx cp chat model.
*
@@ -1333,4 +1339,40 @@ public class WxCpChatModel implements Serializable {
}
/**
* 音视频通话消息
*/
@Getter
@Setter
public static class VoipText implements Serializable {
private static final long serialVersionUID = -5028321625140879571L;
@SerializedName("callduration")
private Integer callDuration;
@SerializedName("invitetype")
private Integer inviteType;
/**
* From json voip text.
*
* @param json the json
* @return the voip text
*/
public static VoipText fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, VoipText.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
}