C# Class Senparc.Weixin.Work.ResponseMessageFactory

Exibir arquivo Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
GetResponseEntity ( System.Xml.Linq.XDocument doc ) : IResponseMessageBase

获取XDocument转换后的IResponseMessageBase实例(通常在反向读取日志的时候用到)。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常

GetResponseEntity ( string xml ) : IResponseMessageBase

获取XDocument转换后的IRequestMessageBase实例。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常

Method Details

GetResponseEntity() public static method

获取XDocument转换后的IResponseMessageBase实例(通常在反向读取日志的时候用到)。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常
public static GetResponseEntity ( System.Xml.Linq.XDocument doc ) : IResponseMessageBase
doc System.Xml.Linq.XDocument
return IResponseMessageBase

GetResponseEntity() public static method

获取XDocument转换后的IRequestMessageBase实例。 如果MsgType不存在,抛出UnknownRequestMsgTypeException异常
public static GetResponseEntity ( string xml ) : IResponseMessageBase
xml string
return IResponseMessageBase