Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MetaBrainz.Common #42

Merged
merged 7 commits into from
Jan 27, 2022
Merged

Use MetaBrainz.Common #42

merged 7 commits into from
Jan 27, 2022

Conversation

Zastai
Copy link
Owner

@Zastai Zastai commented Jan 27, 2022

This adds a reference to MetaBrainz.Common 1.0.0 and updates MetaBrainz.Common.Json to version 5.1.0.

The interal Utils class has been dropped, with most of its functionality switched to utilities from the updated dependencies.

This adds `MetaBrainz.Common` 1.0.0 and updates `MetaBrainz.Common.Json`
to version 5.1.0.
`AsyncUtils.ResultOf` from `MetaBrainz.Common` is used instead.
`HttpUtils.CreateUserAgentHeader` from `MetaBrainz.Common` is used
instead.
`TextUtils.FormatMultiLine` from `MetaBrainz.Common` is used instead.
`JsonUtils.GetJsonContentAsync` from `MetaBrainz.Common.Json` is used
instead.
`HttpUtils.GetStringContentAsync` from `MetaBrainz.Common` is used
instead.
`Utils.CreateQueryExceptionForAsync` is moved to
`QueryException.FromResponseAsync` (with a non-async version added as
well).
This was the last method from `Utils`, so the whole class was dropped.
@Zastai Zastai added the dependencies Updates to dependencies label Jan 27, 2022
@Zastai Zastai merged commit d61a65b into main Jan 27, 2022
@Zastai Zastai deleted the use-mb-common branch January 27, 2022 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Updates to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant