Skip to content

VarleyS/SevenDaysOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

7Days Of Code - C#

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Project Summary:

Consume the PokéAPI (Pokémon API) utilizing just C# language, list the Pokémons and allows the user to chooes a Pokémon for adoption.

Stack:

  • C# Language

  • .Net Framework

  • PokéAPI

  • Json

Day 1:

  • Create C# code to execte the HTTP GET request.

  • Catch the Json from the request.

  • Print the Json on the console.

Using just the library Rest Sharp was made a request to the PokéAPI and cached the list of Pokémons Json:

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Day 2:

  • Parse the Json response and extract each Pokémon info.

  • Show the organized information on the console.

The Json was parsed with the System.Text.Json and the class Mascote and class Ability was created to represent a Pokémon entity.

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Day 3:

  • Create an interactive menu and allow user to view your current mascots, choose an mascot to adopt and exit the app.

Created Menu class providing user interaction and options to adopt a mascot, view its information and exit the menu.

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Day 4:

  • Organize the project source files in the MVC (Model view controller) standart.

The application was divided into classes according to Mvc: Model = Ability, Mascote, Pokemon View = Menu Controller = TamagotchiController

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Day 5:

  • Add common mascote atributos fome, sono, felicidade, canssado, saúde.
  • Add mascote actions eat, sleep and play

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Day 6:

  • Map class Pokemon to class Mascot. Implementation carried out in the mascot class, so that it inherits characteristics from the Pokemon class.

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Day 7:

  • Build and generate the executable of the application Application published for interactions, using commands, according to documentation.

Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.

Releases

No releases published

Packages

No packages published

Languages