public void DownloadChildrenAsync(long woeid, int degree, object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "place/";
            settings.Query      = woeid.ToString() + "/children.degree(" + degree.ToString() + ")";
            base.DownloadAsync(settings, userArgs);
        }
        public void DownloadParentAsync(long woeid, object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "place/";
            settings.Query      = woeid.ToString() + "/parent";
            base.DownloadAsync(settings, userArgs);
        }
        public void DownloadChildrenAsync(long woeid, PlaceType type, object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "place/";
            settings.Query      = woeid.ToString() + "/children.type(" + Convert.ToInt32(type).ToString() + ")";
            base.DownloadAsync(settings, userArgs);
        }
        public void DownloadAsync(string keyword, PlaceType type, object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "places";
            settings.Query      = this.KeywordQuery(keyword, type);
            base.DownloadAsync(settings, userArgs);
        }
        public void DownloadAsync(IEnumerable <long> woeids, object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "places";
            settings.Query      = this.WoeidQuery(woeids);
            base.DownloadAsync(settings, userArgs);
        }
        public void DownloadDistrictsAsync(PlacesData county, object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "districts/";
            settings.Query      = county.WOEID.ToString();
            base.DownloadAsync(settings, userArgs);
        }
        public void DownloadCountyAsync(PlacesData state, object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "counties/";
            settings.Query      = state.WOEID.ToString();
            base.DownloadAsync(settings, userArgs);
        }
        public void DownloadCountriesAsync(object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "countries";
            settings.Query      = "";
            base.DownloadAsync(settings, userArgs);
        }
        public void DownloadCommonAncestorAsync(int first, IEnumerable <long> woeids, object userArgs)
        {
            PlacesDownloadSettings settings = (PlacesDownloadSettings)this.Settings.Clone();

            settings.Collection = "place/";
            settings.Query      = this.ComAncestorQuery(first, woeids);
            base.DownloadAsync(settings, userArgs);
        }
 private YahooManaged.Base.Response <PlacesResult> DownloadPlaces(PlacesDownloadSettings settings)
 {
     return((YahooManaged.Base.Response <PlacesResult>)base.Download(settings));
 }