public class ChatArchivingDetail extends AbstractModel
Constructor and Description |
---|
ChatArchivingDetail() |
ChatArchivingDetail(ChatArchivingDetail source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Get 动作名称,switch表示切换企微账号,send表示企微普通消息
|
String |
getBodyJson()
Get 根据MsgType的不同取值,解析内容不同,参考:https://open.work.weixin.qq.com/api/doc/90000/90135/91774
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getFrom()
Get 消息发送人
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getMsgId()
Get 消息id
|
Long |
getMsgTime()
Get 消息发送的时间戳,单位为秒
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getMsgType()
Get 消息类型,当Action != "switch"时存在,例如video, text, voice 等,和企微开放文档一一对应
https://open.work.weixin.qq.com/api/doc/90000/90135/91774
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getRoomId()
Get 如果是群消息,则不为空
注意:此字段可能返回 null,表示取不到有效值。
|
String[] |
getToList()
Get 消息接收人列表,注意接收人可能只有一个
注意:此字段可能返回 null,表示取不到有效值。
|
ChatArchivingMsgTypeVideo |
getVideo()
Get MsgType=video时的消息体,忽略此字段,见BodyJson字段
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAction(String Action)
Set 动作名称,switch表示切换企微账号,send表示企微普通消息
|
void |
setBodyJson(String BodyJson)
Set 根据MsgType的不同取值,解析内容不同,参考:https://open.work.weixin.qq.com/api/doc/90000/90135/91774
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFrom(String From)
Set 消息发送人
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setMsgId(String MsgId)
Set 消息id
|
void |
setMsgTime(Long MsgTime)
Set 消息发送的时间戳,单位为秒
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setMsgType(String MsgType)
Set 消息类型,当Action != "switch"时存在,例如video, text, voice 等,和企微开放文档一一对应
https://open.work.weixin.qq.com/api/doc/90000/90135/91774
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRoomId(String RoomId)
Set 如果是群消息,则不为空
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setToList(String[] ToList)
Set 消息接收人列表,注意接收人可能只有一个
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setVideo(ChatArchivingMsgTypeVideo Video)
Set MsgType=video时的消息体,忽略此字段,见BodyJson字段
注意:此字段可能返回 null,表示取不到有效值。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public ChatArchivingDetail()
public ChatArchivingDetail(ChatArchivingDetail source)
public String getMsgId()
public void setMsgId(String MsgId)
MsgId
- 消息idpublic String getAction()
public void setAction(String Action)
Action
- 动作名称,switch表示切换企微账号,send表示企微普通消息public String getMsgType()
public void setMsgType(String MsgType)
MsgType
- 消息类型,当Action != "switch"时存在,例如video, text, voice 等,和企微开放文档一一对应
https://open.work.weixin.qq.com/api/doc/90000/90135/91774
注意:此字段可能返回 null,表示取不到有效值。public String getFrom()
public void setFrom(String From)
From
- 消息发送人
注意:此字段可能返回 null,表示取不到有效值。public String[] getToList()
public void setToList(String[] ToList)
ToList
- 消息接收人列表,注意接收人可能只有一个
注意:此字段可能返回 null,表示取不到有效值。public String getRoomId()
public void setRoomId(String RoomId)
RoomId
- 如果是群消息,则不为空
注意:此字段可能返回 null,表示取不到有效值。public Long getMsgTime()
public void setMsgTime(Long MsgTime)
MsgTime
- 消息发送的时间戳,单位为秒
注意:此字段可能返回 null,表示取不到有效值。public ChatArchivingMsgTypeVideo getVideo()
public void setVideo(ChatArchivingMsgTypeVideo Video)
Video
- MsgType=video时的消息体,忽略此字段,见BodyJson字段
注意:此字段可能返回 null,表示取不到有效值。public String getBodyJson()
public void setBodyJson(String BodyJson)
BodyJson
- 根据MsgType的不同取值,解析内容不同,参考:https://open.work.weixin.qq.com/api/doc/90000/90135/91774
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2023. All rights reserved.