Class ChatArchivingDetail

    • Constructor Summary

      Constructors 
      Constructor 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
    • Constructor Detail

      • ChatArchivingDetail

        public ChatArchivingDetail()
      • ChatArchivingDetail

        public 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.
    • Method Detail

      • getMsgId

        public String getMsgId()
        Get 消息id
        Returns:
        MsgId 消息id
      • setMsgId

        public void setMsgId​(String MsgId)
        Set 消息id
        Parameters:
        MsgId - 消息id
      • getAction

        public String getAction()
        Get 动作名称,switch表示切换企微账号,send表示企微普通消息
        Returns:
        Action 动作名称,switch表示切换企微账号,send表示企微普通消息
      • setAction

        public void setAction​(String Action)
        Set 动作名称,switch表示切换企微账号,send表示企微普通消息
        Parameters:
        Action - 动作名称,switch表示切换企微账号,send表示企微普通消息
      • getMsgType

        public String getMsgType()
        Get 消息类型,当Action != "switch"时存在,例如video, text, voice 等,和企微开放文档一一对应 https://open.work.weixin.qq.com/api/doc/90000/90135/91774 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        MsgType 消息类型,当Action != "switch"时存在,例如video, text, voice 等,和企微开放文档一一对应 https://open.work.weixin.qq.com/api/doc/90000/90135/91774 注意:此字段可能返回 null,表示取不到有效值。
      • setMsgType

        public void setMsgType​(String MsgType)
        Set 消息类型,当Action != "switch"时存在,例如video, text, voice 等,和企微开放文档一一对应 https://open.work.weixin.qq.com/api/doc/90000/90135/91774 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        MsgType - 消息类型,当Action != "switch"时存在,例如video, text, voice 等,和企微开放文档一一对应 https://open.work.weixin.qq.com/api/doc/90000/90135/91774 注意:此字段可能返回 null,表示取不到有效值。
      • getFrom

        public String getFrom()
        Get 消息发送人 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        From 消息发送人 注意:此字段可能返回 null,表示取不到有效值。
      • setFrom

        public void setFrom​(String From)
        Set 消息发送人 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        From - 消息发送人 注意:此字段可能返回 null,表示取不到有效值。
      • getToList

        public String[] getToList()
        Get 消息接收人列表,注意接收人可能只有一个 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        ToList 消息接收人列表,注意接收人可能只有一个 注意:此字段可能返回 null,表示取不到有效值。
      • setToList

        public void setToList​(String[] ToList)
        Set 消息接收人列表,注意接收人可能只有一个 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        ToList - 消息接收人列表,注意接收人可能只有一个 注意:此字段可能返回 null,表示取不到有效值。
      • getRoomId

        public String getRoomId()
        Get 如果是群消息,则不为空 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        RoomId 如果是群消息,则不为空 注意:此字段可能返回 null,表示取不到有效值。
      • setRoomId

        public void setRoomId​(String RoomId)
        Set 如果是群消息,则不为空 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        RoomId - 如果是群消息,则不为空 注意:此字段可能返回 null,表示取不到有效值。
      • getMsgTime

        public Long getMsgTime()
        Get 消息发送的时间戳,单位为秒 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        MsgTime 消息发送的时间戳,单位为秒 注意:此字段可能返回 null,表示取不到有效值。
      • setMsgTime

        public void setMsgTime​(Long MsgTime)
        Set 消息发送的时间戳,单位为秒 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        MsgTime - 消息发送的时间戳,单位为秒 注意:此字段可能返回 null,表示取不到有效值。
      • getVideo

        public ChatArchivingMsgTypeVideo getVideo()
        Get MsgType=video时的消息体,忽略此字段,见BodyJson字段 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Video MsgType=video时的消息体,忽略此字段,见BodyJson字段 注意:此字段可能返回 null,表示取不到有效值。
      • setVideo

        public void setVideo​(ChatArchivingMsgTypeVideo Video)
        Set MsgType=video时的消息体,忽略此字段,见BodyJson字段 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Video - MsgType=video时的消息体,忽略此字段,见BodyJson字段 注意:此字段可能返回 null,表示取不到有效值。
      • getBodyJson

        public String getBodyJson()
        Get 根据MsgType的不同取值,解析内容不同,参考:https://open.work.weixin.qq.com/api/doc/90000/90135/91774 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        BodyJson 根据MsgType的不同取值,解析内容不同,参考:https://open.work.weixin.qq.com/api/doc/90000/90135/91774 注意:此字段可能返回 null,表示取不到有效值。
      • setBodyJson

        public void setBodyJson​(String BodyJson)
        Set 根据MsgType的不同取值,解析内容不同,参考:https://open.work.weixin.qq.com/api/doc/90000/90135/91774 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        BodyJson - 根据MsgType的不同取值,解析内容不同,参考:https://open.work.weixin.qq.com/api/doc/90000/90135/91774 注意:此字段可能返回 null,表示取不到有效值。