public WeixinResponse(string reqFromUserName) { var account = ConfigurationManager.AppSettings["Account"]; ToUserName = new StringXmlCDataSection(reqFromUserName); FromUserName = new StringXmlCDataSection(account); CreateTime = Utils.DateTimeHelper.Timestamp(DateTime.Now).ToString(); }
public WeixinResponse(string reqFromUserName) { ToUserName = new StringXmlCDataSection(reqFromUserName); FromUserName = new StringXmlCDataSection(Consts.ACCOUNT); CreateTime = Utils.DateTimeHelper.Timestamp(DateTime.Now).ToString(); }
public NewsResponse(string toUserName) : base(toUserName) { Content = new StringXmlCDataSection(""); MsgType = new StringXmlCDataSection("news"); }
public TextResponse(string reqFromUserName, string content) : base(reqFromUserName) { Content = new StringXmlCDataSection(content); MsgType = new WeixinResponse.StringXmlCDataSection("text"); }