Ejemplo n.º 1
0
        public async void GetPlanetInfo()
        {
            Planet planetInfo = new Planet();

            Query = string.Empty;

            planetInfo = await SwapiHelper.GetPlanetInfo(selectedPlanet.url);

            Planets.Clear();
        }
Ejemplo n.º 2
0
        public async void GetStarshipInfo()
        {
            Starship StarshipInfo = new Starship();

            Query = string.Empty;

            StarshipInfo = await SwapiHelper.GetStarshipInfo(SelectedStarship.url);

            Starships.Clear();
        }
Ejemplo n.º 3
0
        public async void MakeQuery()
        {
            var planets = await SwapiHelper.GetPlanets(Query);

            Planets.Clear();

            foreach (var planet in planets)
            {
                Planets.Add(planet);
            }
        }
Ejemplo n.º 4
0
        internal async void MakeQuery()
        {
            var starships = await SwapiHelper.GetStarships(Query);

            Starships.Clear();

            foreach (var starship in starships)
            {
                Starships.Add(starship);
            }
        }
Ejemplo n.º 5
0
        public async void MakeQuery()
        {
            var characters = await SwapiHelper.GetCharacters(Query);

            Characters.Clear();

            foreach (var character in characters)
            {
                Characters.Add(character);
            }
        }
Ejemplo n.º 6
0
        private async void GetCharacterInfo()
        {
            Character CharacterInfo = new Character();

            Query = string.Empty;


            CharacterInfo = await SwapiHelper.GetCharacterInfo(SelectedCharacter.url);

            Characters.Clear();
        }