Exemple #1
0
        public WeChatNotifyHelper(WeChatPushType pt)
        {
            switch (pt)
            {
            case WeChatPushType.News:
                weChatPushNotify = new NewsWeChatPushNotify();
                break;

            case WeChatPushType.Message:
                weChatPushNotify = new MessagePushNotify();
                break;

            default:
                break;
            }
        }
Exemple #2
0
 public WeChatNotifyHelper(WeChatPushType pt)
 {
     switch (pt)
     {
         case WeChatPushType.News:
             weChatPushNotify = new NewsWeChatPushNotify();
             break;
         case WeChatPushType.Message:
             weChatPushNotify = new MessagePushNotify();
             break;
         default:
             break;
     }
 }