点击或拖拽改变大小
盛派网络

RequestMessageEventBase 类

Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!

NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039

请求消息的事件推送消息基类
继承层次

命名空间:  Senparc.Weixin.MP.Entities
程序集:  Senparc.Weixin.MP (在 Senparc.Weixin.MP.dll 中) 版本:16.12.400+09cf0202d5d3e8b12fec87564321e2fafb5f0214
语法
public class RequestMessageEventBase : RequestMessageEvent, 
	IRequestMessageEventBase, IRequestMessageEvent, IRequestMessageBase, IMessageBase, IEntityBase

RequestMessageEventBase 类型公开以下成员。

构造函数
  名称说明
公共方法RequestMessageEventBase
初始化 RequestMessageEventBase 类的一个新实例
Top
属性
  名称说明
公共属性CreateTime
消息创建时间
(继承自 MessageBase。)
公共属性Encrypt (继承自 RequestMessageBase。)
公共属性Event
事件类型
公共属性EventName
获取事件类型的字符串
(继承自 RequestMessageEvent。)
公共属性EventType
事件类型
(重写 RequestMessageEventEventType.)
公共属性FromUserName
发送人(在 Request 中为OpenId,在 Response 中为公众号的微信号)
(继承自 MessageBase。)
公共属性MsgId (继承自 RequestMessageBase。)
公共属性MsgType (重写 RequestMessageBaseMsgType.)
公共属性ToUserName
接收人(在 Request 中为公众号的微信号,在 Response 中为 OpenId)
(继承自 MessageBase。)
Top
方法
  名称说明
公共方法ToString
ToString() 方法重写
(继承自 MessageBase。)
Top
扩展方法
  名称说明
公共扩展器方法ConvertToRequestMessageText
将RequestMessageEventBase转换成RequestMessageText类型,其中Content = requestMessage.EventKey
(由 Extensions 定义。)
公共扩展器方法CreateResponseMessageT已重载。
ResponseMessageBase.CreateFromRequestMessage<T>(requestMessage)的扩展方法
(由 EntityHelper 定义。)
公共扩展器方法CreateResponseMessageT(MessageEntityEnlightener)已重载。
ResponseMessageBase.CreateFromRequestMessage<T>(requestMessage)的扩展方法
(由 EntityHelper 定义。)
公共扩展器方法GetWeixinRequestInfo
获取RequestMessage中ToUserName中的信息(这条信息由微微嗨平台向APP发出)
(由 AppUtility 定义。)
公共扩展器方法Serialize
序列化对象
(由 StackExchangeRedisExtensions 定义。)
公共扩展器方法ToHashEntries
Serialize in Redis format
(由 RedisUtils 定义。)
公共扩展器方法ToJson
把数据转换为Json格式(使用Newtonsoft.Json.dll)
(由 ObjectExtensions 定义。)
Top
参见
继承层次
SystemObject
  Senparc.NeuChar.EntitiesMessageBase
    Senparc.NeuChar.EntitiesRequestMessageBase
      Senparc.NeuChar.EntitiesRequestMessageEvent
        Senparc.Weixin.MP.EntitiesRequestMessageEventBase
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_AnnualRenew
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_ApplyMerchantAuditInfo
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Card_Not_Pass_Check
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Card_Pass_Check
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Card_Pay_Order
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Card_Sku_Remind
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Click
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_CreateMapPoiAuditInfo
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Enter
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_GiftCard_Pay_Done
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_GiftCard_Send_To_Friend
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_GiftCard_User_Accept
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Kf_Close_Session
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Kf_Create_Session
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Kf_Switch_Session
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Location
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Location_Select
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_MassSendJobFinish
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Merchant_Order
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_NamingVerifyFail
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_NamingVerifySuccess
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Pic_Photo_Or_Album
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Pic_Sysphoto
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Pic_Weixin
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Poi_Check_Notify
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_QualificationVerifyFail
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_QualificationVerifySuccess
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Scan
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Scancode_Push
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Scancode_Waitmsg
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_ShakearoundUserShake
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Submit_Membercard_User_Info
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Subscribe
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Subscribe_Msg_Change
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Subscribe_Msg_Popup
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Subscribe_Msg_Sent
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_TemplateSendJobFinish
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Unsubscribe
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_Update_Member_Card
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_User_Authorize_Invoice
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_User_Consume_Card
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_User_Del_Card
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_User_Enter_Session_From_Card
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_User_Get_Card
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_User_Gifting_Card
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_User_Pay_From_Pay_Cell
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_User_View_Card
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_VerifyExpired
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_View
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_View_Miniprogram
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_WeAppAuditFail
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_WeAppAuditSuccess
          Senparc.Weixin.MP.EntitiesRequestMessageEvent_WifiConnected