本文整理汇总了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;
}
}
开发者ID:MetSystem,项目名称:WeiXin,代码行数:37,代码来源:1414138668$sendmsg.cs
示例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());
}
开发者ID:MetSystem,项目名称:WeiXin,代码行数:41,代码来源:1414132764$SendMsg.cs
示例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;
}
}
开发者ID:MetSystem,项目名称:WeiXin,代码行数:32,代码来源:1414138618$sendmsg.cs
示例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();
}
}
开发者ID:MetSystem,项目名称:WeiXin,代码行数:18,代码来源:1414116436$SendMsg.cs
示例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);
}
}
开发者ID:MetSystem,项目名称:WeiXin,代码行数:22,代码来源:1414116846$SendMsg.cs
示例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);
}
开发者ID:MetSystem,项目名称:WeiXin,代码行数:24,代码来源:1414138183$sendmsg.cs
示例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);*/
}
开发者ID:MetSystem,项目名称:WeiXin,代码行数:24,代码来源:1414132033$SendMsg.cs
注:本文中的WeiXin.Model.SendMsg.ArticlesModel类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论