Exemplo n.º 1
0
        /// <summary>
        /// 构造方法
        /// </summary>
        public WXResponse(string msgType)
        {
            this.msgType = msgType;
            switch (msgType)
            {
            case "text":
                _textmodel = new TextWXResponse_Model();
                break;

            case "music":
                _musicmodel = new MusicWXResponse_Model();
                break;

            case "news":
                _newsmodel = new NewsWXResponse_Model();
                break;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public WXResponse(string msgType)
 {
     this.msgType = msgType;
     switch (msgType)
     {
         case "text":
             _textmodel = new TextWXResponse_Model();
             break;
         case "music":
             _musicmodel = new MusicWXResponse_Model();
             break;
         case "news":
             _newsmodel = new NewsWXResponse_Model();
             break;
     }
 }