示例#1
0
        public override void Push(object o)
        {
            string toUser = o as string;

            string[] articles = new string[2];
            articles[0] = WeChatPushMessage.NewsArticleUnit("这一步校园招聘", "", "http://www.zheyibu.com", "");
            articles[1] = WeChatPushMessage.NewsArticleUnit("这一步", "", "", "");

            base.PushToWechat(WeChatPushMessage.NewsMessage(toUser, articles));
        }
示例#2
0
        public override void Push(object o)
        {
            Tuple <string, string> t = o as Tuple <string, string>;

            base.PushToWechat(WeChatPushMessage.TextMessage(t.Item1, t.Item2));
        }