public BeatSaverFeedSettings(BeatSaverFeed feed)
 {
     Feed         = feed;
     MaxPages     = 0;
     StartingPage = 1;
     SearchType   = BeatSaverSearchType.all;
 }
Example #2
0
        public static Uri GetPageUrl(BeatSaverFeed feed, int pageIndex = 0, Dictionary <string, string> replacements = null)
        {
            string        mapperId = string.Empty;
            StringBuilder url      = new StringBuilder(Feeds[feed].BaseUrl);

            //if (!string.IsNullOrEmpty(author) && author.Length > 3)
            //    mapperId = GetAuthorID(author);
            if (replacements != null)
            {
                foreach (var key in replacements.Keys)
                {
                    url.Replace(key, replacements[key]);
                }
            }
            return(Utilities.GetUriFromString(url.Replace(PAGEKEY, pageIndex.ToString()).ToString()));
        }