/// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="toUserName">接收方账号</param>
 /// <param name="fromUserName">开发者微信号</param>
 /// <param name="createTime">消息创建时间</param>
 /// <param name="msgType">消息类型</param>
 protected ResponseBaseMessage(string toUserName, string fromUserName, DateTime createTime, ResponseMessageTypeEnum msgType)
 {
     ToUserName   = toUserName;
     FromUserName = fromUserName;
     CreateTime   = createTime;
     MsgType      = msgType;
 }
 /// <summary>
 /// 创建XmlElement节点。
 /// </summary>
 /// <param name="doc">xml文档</param>
 /// <param name="name">子节点名称</param>
 /// <param name="dt">子节点包含的数据</param>
 protected XmlElement CreateXmlElement(XmlDocument doc, string name, ResponseMessageTypeEnum data)
 {
     return(CreateXmlElement(doc, name, data.ToString("g"), XmlNodeType.CDATA));
 }
 /// <summary>
 /// Seta um TempData para armazenar a mensagem desejada e o tipo de exibição
 /// </summary>
 /// <param name="message">Mensagem</param>
 /// <param name="type">Tipo de exibição</param>
 public void ResponseMessage(string message, ResponseMessageTypeEnum type)
 {
     TempData["ReturnMessage"] = new ResponseMessage {
         Message = Resources.Literals.ResourceManager.GetString(message), Type = type
     };
 }