🎨 #3598 【企业微信】 会话存档接口添加对音视频通话(voiptext)消息类型的支持
This commit is contained in:
@@ -202,6 +202,12 @@ public class WxCpChatModel implements Serializable {
|
|||||||
@SerializedName("sphfeed")
|
@SerializedName("sphfeed")
|
||||||
private SphFeed sphFeed;
|
private SphFeed sphFeed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 音视频通话消息
|
||||||
|
*/
|
||||||
|
@SerializedName("voiptext")
|
||||||
|
private VoipText voipText;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* From json wx cp chat model.
|
* 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user