Beispiel #1
0
        public override async void SaveCommandAction(object obj)
        {
            await DbHandler.Instance.SaveData <BbCategory>(new BbCategory
            {
                Name = SearchTerm,
                Key  = SearchTerm.Replace(" ", "_").ToUpper()
            });

            base.SaveCommandAction(obj);
        }
Beispiel #2
0
        // Creates the url to call on the itunes api
        public string urlBuilder()
        {
            string baseURL     = "https://itunes.apple.com/search?term=";
            string mediaString = MediaType;
            string term        = SearchTerm.Replace(" ", "+");
            string entity      = changeToEntity(mediaString);
            string limit       = "10";

            return(baseURL + term + "&entity=" + entity + "&limit=" + limit);;
        }