コード例 #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;
            }
        }
コード例 #2
0
ファイル: WXResponse.cs プロジェクト: a707937337/cucentOA
 /// <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;
     }
 }