Jpedrdo / Class-Sound

C# console app with ChatGPT to save bands, albums, rate and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Class Sound

Class Sound is a console application developed in C# for study purposes. The application allows users to interact with a menu of options to register bands, albums, rate bands and albums, display all registered bands, and details of a specific band.

Technologies and Best Practices

The application was developed using various technologies and best practices, including:

  • C#: The application was entirely written in C#, a modern, object-oriented, and strongly typed programming language.
  • Singleton Pattern: The Singleton pattern was used to ensure that only one instance of MenuShowOptions exists throughout the application.
  • Async/Await: The application makes extensive use of asynchronous operations to ensure that the user interface remains responsive, even during long-running operations.
  • Exception Handling: The application includes robust exception handling to ensure that errors are properly caught and handled.
  • Generic Methods: The application uses generic methods, like `DisplayCurrentList<T>`, to provide flexibility and reusability. This method can handle different types of lists and display them accordingly.
  • Type Checking and Conversion: The application uses type checking and conversion to handle different types of objects and perform appropriate actions based on their types.

Integration with ChatGPT

The application also integrates with ChatGPT, an AI language model from OpenAI. The ChatGpt class in the application uses the OpenAI API to interact with ChatGPT. The application sends a prompt to ChatGPT and receives a response, which is then returned to the user. This integration allows the application to provide informal resumes of bands in a paragraph.

Please note that to use the ChatGPT integration, you will need to provide your own OpenAI API key.

How to Use

To use the application, simply run the program and follow the instructions in the options menu. You can type the number corresponding to the option you want to select and press Enter. To exit the application, type -1.

Please note that this is a study application and should not be used in a production environment.

About

C# console app with ChatGPT to save bands, albums, rate and more.

License:MIT License


Languages

Language:C# 100.0%