Пример #1
0
        /// <summary>
        ///     Create a plugin object based upon it's main namespace and web data
        /// </summary>
        /// <param name="main">the main namespace of the plugin to search/create</param>
        /// <returns></returns>
        public static BukgetPlugin CreateFromNamespace(string main)
        {
            string url  = BukgetUrlBuilder.ConstructUrl(PluginInfoField.Main, SearchAction.Equals, main, 1);
            string data = WebUtil.RetrieveString(url);

            return(new BukgetPlugin(data));
        }
Пример #2
0
        public static Dictionary <String, BukgetPlugin> SearchPlugins(string searchtext, int amount)
        {
            string url = BukgetUrlBuilder.ConstructUrl(PluginInfoField.Plugin_Name, SearchAction.Like, searchtext,
                                                       amount);

            return(RetrieveParseStore(url));
        }
Пример #3
0
        public static Dictionary <String, BukgetPlugin> GetMostPopularPlugins(int amount)
        {
            string url = BukgetUrlBuilder.ConstructUrl(BukgetUrlBuilder.FieldsSimple, PluginInfoField.Pop_Daily, true,
                                                       amount);

            return(RetrieveParseStore(url));
        }
Пример #4
0
        public static Dictionary <String, BukgetPlugin> GetPluginsByCategory(string category, int amount)
        {
            PluginCategory cat =
                (PluginCategory)Enum.Parse(typeof(PluginCategory), category.Replace(" ", "_").Replace("-", "__"));
            string url = BukgetUrlBuilder.ConstructUrl(cat, BukgetUrlBuilder.FieldsSimple, amount);

            return(RetrieveParseStore(url));
        }
Пример #5
0
        public static Dictionary <String, BukgetPlugin> GetPluginsByCategory(PluginCategory category, int amount)
        {
            string url = BukgetUrlBuilder.ConstructUrl(category, BukgetUrlBuilder.FieldsSimple, amount);

            return(RetrieveParseStore(url));
        }