예제 #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();
 }
예제 #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();
        }
예제 #3
0
 public WeixinResponse(string reqFromUserName)
 {
     ToUserName = new StringXmlCDataSection(reqFromUserName);
     FromUserName = new StringXmlCDataSection(Consts.ACCOUNT);
     CreateTime = Utils.DateTimeHelper.Timestamp(DateTime.Now).ToString();
 }
예제 #4
0
 public NewsResponse(string toUserName)
     : base(toUserName)
 {
     Content = new StringXmlCDataSection("");
     MsgType = new StringXmlCDataSection("news");
 }
예제 #5
0
 public TextResponse(string reqFromUserName, string content)
     : base(reqFromUserName)
 {
     Content = new StringXmlCDataSection(content);
     MsgType = new WeixinResponse.StringXmlCDataSection("text");
 }
예제 #6
0
 public NewsResponse(string toUserName)
     : base(toUserName)
 {
     Content = new StringXmlCDataSection("");
     MsgType = new StringXmlCDataSection("news");
 }
예제 #7
0
 public TextResponse(string reqFromUserName, string content)
     : base(reqFromUserName)
 {
     Content = new StringXmlCDataSection(content);
     MsgType = new WeixinResponse.StringXmlCDataSection("text");
 }