Esempio n. 1
0
 public WeixinResponse(string reqFromUserName)
 {
     var account = ConfigurationManager.AppSettings["Account"];
     ToUserName = new StringXmlCDataSection(reqFromUserName);
     FromUserName = new StringXmlCDataSection(account);
     CreateTime = Utils.DateTimeHelper.Timestamp(DateTime.Now).ToString();
 }
Esempio n. 2
0
        public WeixinResponse(string reqFromUserName)
        {
            var account = ConfigurationManager.AppSettings["Account"];

            ToUserName   = new StringXmlCDataSection(reqFromUserName);
            FromUserName = new StringXmlCDataSection(account);
            CreateTime   = Utils.DateTimeHelper.Timestamp(DateTime.Now).ToString();
        }
Esempio n. 3
0
 public WeixinResponse(string reqFromUserName)
 {
     ToUserName = new StringXmlCDataSection(reqFromUserName);
     FromUserName = new StringXmlCDataSection(Consts.ACCOUNT);
     CreateTime = Utils.DateTimeHelper.Timestamp(DateTime.Now).ToString();
 }
Esempio n. 4
0
 public NewsResponse(string toUserName)
     : base(toUserName)
 {
     Content = new StringXmlCDataSection("");
     MsgType = new StringXmlCDataSection("news");
 }
Esempio n. 5
0
 public TextResponse(string reqFromUserName, string content)
     : base(reqFromUserName)
 {
     Content = new StringXmlCDataSection(content);
     MsgType = new WeixinResponse.StringXmlCDataSection("text");
 }
Esempio n. 6
0
 public NewsResponse(string toUserName)
     : base(toUserName)
 {
     Content = new StringXmlCDataSection("");
     MsgType = new StringXmlCDataSection("news");
 }
Esempio n. 7
0
 public TextResponse(string reqFromUserName, string content)
     : base(reqFromUserName)
 {
     Content = new StringXmlCDataSection(content);
     MsgType = new WeixinResponse.StringXmlCDataSection("text");
 }