akamsteeg / AtleX.HaveIBeenPwned

A fully async .NET Standard client library for the API of HaveIBeenPwned.com
https://www.nuget.org/packages/AtleX.HaveIBeenPwned/
MIT License
5 stars 0 forks source link

Reorganise classes and namespaces #16

Closed akamsteeg closed 5 years ago

akamsteeg commented 5 years ago

Currently, a user must add a lot of usings when using this lib. For example, the main HaveIBeenPwnedClient is in AtleX.HaveIBeenPwned, the resulting Breach and Paste objects are in AtleX.HaveIBeenPwned.Data (granted, use var), the exceptions are somewhere in AtleX.HaveIBeenPwned.Communiction, etc. This is confusing and unnecessary.

Related to this, we shoud rename the AtleX.HaveIBeenPwned.Communication namespace to AtleX.HaveIBeenPwned.Clients. It contains the clients, the name should reflect that.

Suggestion: