本文整理匯總了C#中WeiXin.Model.SendMsg.ArticlesModel類的典型用法代碼示例。如果您正苦於以下問題:C# ArticlesModel類的具體用法?C# ArticlesModel怎麽用?C# ArticlesModel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ArticlesModel類屬於WeiXin.Model.SendMsg命名空間,在下文中一共展示了ArticlesModel類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ReplyScanCodeWaitmsg
/// <summary>
/// 回複掃碼推事件且彈出“消息接收中”提示框消息
/// </summary>
/// <param name="model">The model.</param>
/// Author : 俞立鋼
/// Company : 紹興標點電子技術有限公司
/// Created : 2014-10-13 16:09:53
public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
{
string value = model.ReadKey("ScanCodeInfo");
switch (value)
{
case "1":
string content = string.Format("項目編號:{0};\n驗收狀態:{1};\n驗收結果:{2};\n報表查看:<a href='{3}'>點擊查看</a>", value.Substring(6), "完成", "通過", "http://www.sxajj.gov.cn/1.jpg");
ProduceText(model, content);
break;
case "2":
List<ArticlesModel> articles = new List<ArticlesModel>();
ArticlesModel article = new ArticlesModel();
article.Title = string.Format("一號項目\n項目編號:CX2501;驗收狀態:完成;驗收結果:通過;");
article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
article.Url = "http://www.sxajj.gov.cn/1.jpg";
articles.Add(article);
article = new ArticlesModel();
article.Title = string.Format("二號項目\n項目編號:CX2502;驗收狀態:完成;驗收結果:通過;");
article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
article.Url = "http://www.sxajj.gov.cn/1.jpg";
articles.Add(article);
ProduceNews(model, articles);
break;
case "3":
//生成圖片
string mediaId = "IBH9UW7Ptrvbs9rQHAnu2zonxeq5Jh0uL6WwuYauIEWNF0UlyVMecLV3ploxRc5X";
ProduceImage(model, mediaId);
break;
}
}
示例2: ReplaySubscribeText
/// <summary>
/// 回複關注事件的消息
/// </summary>
/// <param name="model">The model.</param>
/// Author : 俞立鋼
/// Company : 紹興標點電子技術有限公司
/// Created : 2014-10-24 14:10:31
public static void ReplaySubscribeText(Dictionary<string, string> model)
{
List<ArticlesModel> articles = new List<ArticlesModel>();
ArticlesModel article = new ArticlesModel();
article.Title = "歡迎關注紹興標點電子公司";
articles.Add(article);
article = new ArticlesModel();
article.Title = "【公司介紹】";
article.Description = "開發、銷售:電子產品、工控設備;開發:電腦軟件;銷售:電腦及耗材;計算機軟硬件的技術谘詢、技術服務、技術轉讓。";
articles.Add(article);
article = new ArticlesModel();
article.Title = "【公司地址】";
article.Description = "中國浙江省紹興市越城區舜江路683號科創大廈705室";
articles.Add(article);
article = new ArticlesModel();
article.Title = "歡迎關注紹興標點電子公司";
articles.Add(article);
article = new ArticlesModel();
article.Title = "歡迎關注紹興標點電子公司";
articles.Add(article);
StringBuilder sb = new StringBuilder();
sb.Append("<B>歡迎關注紹興標點電子公司<B>\n");
sb.Append("<br/>");
sb.Append("【公司介紹】\n");
sb.Append("開發、銷售:電子產品、工控設備;開發:電腦軟件;銷售:電腦及耗材;計算機軟硬件的技術谘詢、技術服務、技術轉讓。");
sb.Append("<br/>");
sb.Append("【公司地址】\n");
sb.Append("中國浙江省紹興市越城區舜江路683號科創大廈705室");
sb.Append("<br/>");
sb.Append("【公司微信】\n");
sb.Append("SxBdDzKjYxGs");
sb.Append("<br/>");
ProduceText(model, sb.ToString());
}
示例3: ReplyScanCodeWaitmsg
/// <summary>
/// 回複掃碼推事件且彈出“消息接收中”提示框消息
/// </summary>
/// <param name="model">The model.</param>
/// Author : 俞立鋼
/// Company : 紹興標點電子技術有限公司
/// Created : 2014-10-13 16:09:53
public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
{
string value = model.ReadKey("ScanCodeInfo");
switch (value)
{
case "1":
string content = string.Format("項目編號:{0};\n驗收狀態:{1};\n驗收結果:{2};\n報表查看:<a href='{3}'>點擊查看</a>", value.Substring(6), "完成", "通過", "http://www.sxajj.gov.cn/1.jpg");
ProduceText(model, content);
break;
case "2":
List<ArticlesModel> articles = new List<ArticlesModel>();
ArticlesModel article = new ArticlesModel();
article.Title = string.Format("一號項目\n項目編號:CX2501;驗收狀態:完成;驗收結果:通過;");
article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
article.Url = "http://www.sxajj.gov.cn/1.jpg";
articles.Add(article);
article = new ArticlesModel();
article.Title = string.Format("二號項目\n項目編號:CX2502;驗收狀態:完成;驗收結果:通過;");
article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
article.Url = "http://www.sxajj.gov.cn/1.jpg";
articles.Add(article);
ProduceNews(model, articles);
break;
}
}
示例4: ReplyScanCodeWaitmsg
/// <summary>
/// 回複掃碼推事件且彈出“消息接收中”提示框消息
/// </summary>
/// <param name="model">The model.</param>
/// Author : 俞立鋼
/// Company : 紹興標點電子技術有限公司
/// Created : 2014-10-13 16:09:53
public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
{
string value = model.ReadKey("ScanCodeInfo");
/*string content = string.Format("項目編號:{0};\n驗收狀態:{1};\n驗收結果:{2};\n報表查看:<a href='{3}'>點擊查看</a>", value.Substring(6), "完成", "通過", "http://www.sxajj.gov.cn/1.jpg");
ProduceText(model, content);*/
List<ArticlesModel> articles = new List<ArticlesModel>();
for (int i = 0; i < 2; i++)
{
ArticlesModel model = new ArticlesModel();
}
}
示例5: ReplyScanCodeWaitmsg
/// <summary>
/// 回複掃碼推事件且彈出“消息接收中”提示框消息
/// </summary>
/// <param name="model">The model.</param>
/// Author : 俞立鋼
/// Company : 紹興標點電子技術有限公司
/// Created : 2014-10-13 16:09:53
public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
{
string value = model.ReadKey("ScanCodeInfo");
/*string content = string.Format("項目編號:{0};\n驗收狀態:{1};\n驗收結果:{2};\n報表查看:<a href='{3}'>點擊查看</a>", value.Substring(6), "完成", "通過", "http://www.sxajj.gov.cn/1.jpg");
ProduceText(model, content);*/
List<ArticlesModel> articles = new List<ArticlesModel>();
for (int i = 1; i < 3; i++)
{
ArticlesModel article = new ArticlesModel();
article.Title = string.Format("{0}號項目", i == 1 ? "一" : "二");
article.Description = string.Format("項目編號:{0};\n驗收狀態:完成;\n驗收結果:通過;\n", i == 1 ? "CX2501" : "CX2502");
article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
articles.Add(article);
}
}
示例6: ReplaySubscribeText
/// <summary>
/// 回複關注事件的消息
/// </summary>
/// <param name="model">The model.</param>
/// Author : 俞立鋼
/// Company : 紹興標點電子技術有限公司
/// Created : 2014-10-24 14:10:31
public static void ReplaySubscribeText(Dictionary<string, string> model)
{
List<ArticlesModel> articles = new List<ArticlesModel>();
ArticlesModel article = new ArticlesModel();
article.Title = "歡迎關注紹興標點電子公司";
articles.Add(article);
article = new ArticlesModel();
article.Title = "【公司介紹】\n開發、銷售:電子產品、工控設備;開發:電腦軟件;銷售:電腦及耗材;計算機軟硬件的技術谘詢、技術服務、技術轉讓。";
articles.Add(article);
article = new ArticlesModel();
article.Title = "【公司地址】\n中國浙江省紹興市越城區舜江路683號科創大廈705室";
articles.Add(article);
article = new ArticlesModel();
article.Title = "【公司微信】\nShaoXinBiaoDian";
articles.Add(article);
ProduceNews(model, articles);
}
示例7: ReplyScanCodeWaitmsg
/// <summary>
/// 回複掃碼推事件且彈出“消息接收中”提示框消息
/// </summary>
/// <param name="model">The model.</param>
/// Author : 俞立鋼
/// Company : 紹興標點電子技術有限公司
/// Created : 2014-10-13 16:09:53
public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
{
/*string value = model.ReadKey("ScanCodeInfo");
string content = string.Format("項目編號:{0};\n驗收狀態:{1};\n驗收結果:{2};\n報表查看:<a href='{3}'>點擊查看</a>", value.Substring(6), "完成", "通過", "http://www.sxajj.gov.cn/1.jpg");
ProduceText(model, content);*/
List<ArticlesModel> articles = new List<ArticlesModel>();
ArticlesModel article = new ArticlesModel();
article.Title = string.Format("{0}號項目", i == 1 ? "一" : "二");
article.Description = string.Format("項目編號:{0};驗收狀態:完成;驗收結果:通過;k", i == 1 ? "CX2501" : "CX2502");
article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
article.Url = "http://www.sxajj.gov.cn/1.jpg";
articles.Add(article);
ProduceNews(model, articles);
//生成圖片
/*string mediaId = "IBH9UW7Ptrvbs9rQHAnu2zonxeq5Jh0uL6WwuYauIEWNF0UlyVMecLV3ploxRc5X";
ProduceImage(model, mediaId);*/
}