From 2756173cd23f4e3a990d2a2ced9136d33d61811b Mon Sep 17 00:00:00 2001 From: Foo <34515228+fooooooooooooooo@users.noreply.github.com> Date: Fri, 10 Sep 2021 04:23:10 -0700 Subject: [PATCH 1/4] rewrite of entire library --- .gitignore | 4 +- .idea/.idea.KSoftNet/.idea/workspace.xml | 115 ++- KSoftNet.Tests/HttpLoggingHandler.cs | 86 +++ KSoftNet.Tests/KSoftAPIUnitTest.cs | 597 ++++++++------- KSoftNet.sln | 8 + KSoftNet.sln.DotSettings | 13 + KSoftNet/AssemblyInfo.cs | 3 + KSoftNet/Endpoints/IBansApi.cs | 86 +++ KSoftNet/Endpoints/IImagesApi.cs | 83 +++ KSoftNet/Endpoints/IKumoApi.cs | 66 ++ KSoftNet/Endpoints/IMusicApi.cs | 68 ++ KSoftNet/Enums/CurrencyCode.cs | 816 +++++++++++++++++++++ KSoftNet/Enums/IconPack.cs | 11 + KSoftNet/Enums/Language.cs | 216 ++++++ KSoftNet/Enums/ReportType.cs | 26 + KSoftNet/Enums/Span.cs | 38 + KSoftNet/Enums/Unit.cs | 31 + KSoftNet/KSoft/BansAPI.cs | 112 --- KSoftNet/KSoft/ImagesAPI.cs | 116 --- KSoftNet/KSoft/KumoAPI.cs | 78 -- KSoftNet/KSoft/MusicAPI.cs | 80 -- KSoftNet/KSoftAPI.cs | 174 ++--- KSoftNet/KSoftNet.csproj | 3 +- KSoftNet/Models/Bans/Ban.cs | 14 + KSoftNet/Models/Bans/BanCheck.cs | 14 + KSoftNet/Models/Bans/BanDeletion.cs | 14 + KSoftNet/Models/Bans/BanInfo.cs | 74 ++ KSoftNet/Models/Bans/BanList.cs | 57 ++ KSoftNet/Models/Bans/BanUpdates.cs | 57 ++ KSoftNet/Models/Images/Image.cs | 32 + KSoftNet/Models/Images/RedditPost.cs | 86 +++ KSoftNet/Models/Images/TagList.cs | 44 ++ KSoftNet/Models/Images/WikihowPost.cs | 25 + KSoftNet/Models/KSoftAlbumInfo.cs | 29 - KSoftNet/Models/KSoftArtistInfo.cs | 27 - KSoftNet/Models/KSoftBan.cs | 11 - KSoftNet/Models/KSoftBanCheck.cs | 5 - KSoftNet/Models/KSoftBanDeletion.cs | 10 - KSoftNet/Models/KSoftBanInfo.cs | 24 - KSoftNet/Models/KSoftBanList.cs | 34 - KSoftNet/Models/KSoftBanUpdates.cs | 16 - KSoftNet/Models/KSoftCurrency.cs | 11 - KSoftNet/Models/KSoftGeoIP.cs | 30 - KSoftNet/Models/KSoftImage.cs | 14 - KSoftNet/Models/KSoftLocation.cs | 19 - KSoftNet/Models/KSoftLyrics.cs | 22 - KSoftNet/Models/KSoftRecommendations.cs | 42 -- KSoftNet/Models/KSoftRedditPost.cs | 17 - KSoftNet/Models/KSoftTags.cs | 14 - KSoftNet/Models/KSoftTrackInfo.cs | 53 -- KSoftNet/Models/KSoftWeather.cs | 55 -- KSoftNet/Models/KSoftWikiHowPost.cs | 8 - KSoftNet/Models/Kumo/Currency.cs | 20 + KSoftNet/Models/Kumo/GeoIp.cs | 126 ++++ KSoftNet/Models/Kumo/Location.cs | 57 ++ KSoftNet/Models/Kumo/Weather.cs | 207 ++++++ KSoftNet/Models/Music/Album.cs | 26 + KSoftNet/Models/Music/AlbumInfo.cs | 35 + KSoftNet/Models/Music/Artist.cs | 20 + KSoftNet/Models/Music/ArtistInfo.cs | 34 + KSoftNet/Models/Music/Recommendations.cs | 161 ++++ KSoftNet/Models/Music/Track.cs | 18 + KSoftNet/Models/Music/TrackInfo.cs | 38 + KSoftNet/Requests/BanRequest.cs | 50 ++ KSoftNet/Requests/RecommendationRequest.cs | 45 ++ KSoftNet/Utils/ParameterFormatter.cs | 110 +++ 66 files changed, 3389 insertions(+), 1246 deletions(-) create mode 100644 KSoftNet.Tests/HttpLoggingHandler.cs create mode 100644 KSoftNet.sln.DotSettings create mode 100644 KSoftNet/AssemblyInfo.cs create mode 100644 KSoftNet/Endpoints/IBansApi.cs create mode 100644 KSoftNet/Endpoints/IImagesApi.cs create mode 100644 KSoftNet/Endpoints/IKumoApi.cs create mode 100644 KSoftNet/Endpoints/IMusicApi.cs create mode 100644 KSoftNet/Enums/CurrencyCode.cs create mode 100644 KSoftNet/Enums/IconPack.cs create mode 100644 KSoftNet/Enums/Language.cs create mode 100644 KSoftNet/Enums/ReportType.cs create mode 100644 KSoftNet/Enums/Span.cs create mode 100644 KSoftNet/Enums/Unit.cs delete mode 100644 KSoftNet/KSoft/BansAPI.cs delete mode 100644 KSoftNet/KSoft/ImagesAPI.cs delete mode 100644 KSoftNet/KSoft/KumoAPI.cs delete mode 100644 KSoftNet/KSoft/MusicAPI.cs create mode 100644 KSoftNet/Models/Bans/Ban.cs create mode 100644 KSoftNet/Models/Bans/BanCheck.cs create mode 100644 KSoftNet/Models/Bans/BanDeletion.cs create mode 100644 KSoftNet/Models/Bans/BanInfo.cs create mode 100644 KSoftNet/Models/Bans/BanList.cs create mode 100644 KSoftNet/Models/Bans/BanUpdates.cs create mode 100644 KSoftNet/Models/Images/Image.cs create mode 100644 KSoftNet/Models/Images/RedditPost.cs create mode 100644 KSoftNet/Models/Images/TagList.cs create mode 100644 KSoftNet/Models/Images/WikihowPost.cs delete mode 100644 KSoftNet/Models/KSoftAlbumInfo.cs delete mode 100644 KSoftNet/Models/KSoftArtistInfo.cs delete mode 100644 KSoftNet/Models/KSoftBan.cs delete mode 100644 KSoftNet/Models/KSoftBanCheck.cs delete mode 100644 KSoftNet/Models/KSoftBanDeletion.cs delete mode 100644 KSoftNet/Models/KSoftBanInfo.cs delete mode 100644 KSoftNet/Models/KSoftBanList.cs delete mode 100644 KSoftNet/Models/KSoftBanUpdates.cs delete mode 100644 KSoftNet/Models/KSoftCurrency.cs delete mode 100644 KSoftNet/Models/KSoftGeoIP.cs delete mode 100644 KSoftNet/Models/KSoftImage.cs delete mode 100644 KSoftNet/Models/KSoftLocation.cs delete mode 100644 KSoftNet/Models/KSoftLyrics.cs delete mode 100644 KSoftNet/Models/KSoftRecommendations.cs delete mode 100644 KSoftNet/Models/KSoftRedditPost.cs delete mode 100644 KSoftNet/Models/KSoftTags.cs delete mode 100644 KSoftNet/Models/KSoftTrackInfo.cs delete mode 100644 KSoftNet/Models/KSoftWeather.cs delete mode 100644 KSoftNet/Models/KSoftWikiHowPost.cs create mode 100644 KSoftNet/Models/Kumo/Currency.cs create mode 100644 KSoftNet/Models/Kumo/GeoIp.cs create mode 100644 KSoftNet/Models/Kumo/Location.cs create mode 100644 KSoftNet/Models/Kumo/Weather.cs create mode 100644 KSoftNet/Models/Music/Album.cs create mode 100644 KSoftNet/Models/Music/AlbumInfo.cs create mode 100644 KSoftNet/Models/Music/Artist.cs create mode 100644 KSoftNet/Models/Music/ArtistInfo.cs create mode 100644 KSoftNet/Models/Music/Recommendations.cs create mode 100644 KSoftNet/Models/Music/Track.cs create mode 100644 KSoftNet/Models/Music/TrackInfo.cs create mode 100644 KSoftNet/Requests/BanRequest.cs create mode 100644 KSoftNet/Requests/RecommendationRequest.cs create mode 100644 KSoftNet/Utils/ParameterFormatter.cs diff --git a/.gitignore b/.gitignore index 37d91f3..71370ed 100644 --- a/.gitignore +++ b/.gitignore @@ -538,4 +538,6 @@ obj/ # Ionide (cross platform F# VS Code tools) working folder -# End of https://www.toptal.com/developers/gitignore/api/visualstudio,csharp,dotnetcore,git \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/visualstudio,csharp,dotnetcore,git + +KSoftNet.Tests/config.json \ No newline at end of file diff --git a/.idea/.idea.KSoftNet/.idea/workspace.xml b/.idea/.idea.KSoftNet/.idea/workspace.xml index 1a29f21..955c923 100644 --- a/.idea/.idea.KSoftNet/.idea/workspace.xml +++ b/.idea/.idea.KSoftNet/.idea/workspace.xml @@ -2,27 +2,71 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + +