Esempio n. 1
0
        /// <summary>
        ///     获取系统推荐的标签列表
        /// </summary>
        /// <param name="count"></param>
        /// <returns></returns>
        public Dictionary <string, string> Suggestions(int count = 10)
        {
            var result = new Dictionary <string, string>();
            var json   = JArray.Parse(api.Suggestions(count));

            foreach (JObject x in json)
            {
                result.Add(x["id"].ToString(), x["value"].ToString());
            }
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// 获取系统推荐的标签列表
 /// </summary>
 /// <param name="count"></param>
 /// <returns></returns>
 public dynamic Suggestions(int count = 10)
 {
     return(DynamicJson.Parse(api.Suggestions(count)));
 }