diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryParams.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryParams.g.cs index 7c72487..b7de8e2 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryParams.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryParams.g.cs @@ -474,13 +474,13 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -491,7 +491,7 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -511,13 +511,13 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -528,7 +528,7 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -561,7 +561,7 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -603,7 +603,7 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -648,7 +648,7 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryTracks.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryTracks.g.cs index 5b3085e..90e620d 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryTracks.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryTracks.g.cs @@ -530,13 +530,13 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -547,7 +547,7 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -567,13 +567,13 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -584,7 +584,7 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -617,7 +617,7 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -659,7 +659,7 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -704,7 +704,7 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPlaylists.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPlaylists.g.cs index 8241e61..2228c64 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPlaylists.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPlaylists.g.cs @@ -328,13 +328,13 @@ partial void ProcessGetPublicPlaylistsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -345,7 +345,7 @@ partial void ProcessGetPublicPlaylistsResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -365,13 +365,13 @@ partial void ProcessGetPublicPlaylistsResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -382,7 +382,7 @@ partial void ProcessGetPublicPlaylistsResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -425,7 +425,7 @@ partial void ProcessGetPublicPlaylistsResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -470,7 +470,7 @@ partial void ProcessGetPublicPlaylistsResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPrices.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPrices.g.cs index 8f17b3e..40708f0 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPrices.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPrices.g.cs @@ -365,7 +365,7 @@ partial void ProcessGetPublicPricesResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -410,7 +410,7 @@ partial void ProcessGetPublicPricesResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPricesByPrice.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPricesByPrice.g.cs index e6a5c5c..252c5ca 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPricesByPrice.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPricesByPrice.g.cs @@ -355,13 +355,13 @@ partial void ProcessGetPublicPricesByPriceResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -372,7 +372,7 @@ partial void ProcessGetPublicPricesByPriceResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -415,7 +415,7 @@ partial void ProcessGetPublicPricesByPriceResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -460,7 +460,7 @@ partial void ProcessGetPublicPricesByPriceResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicStreamingGetLink.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicStreamingGetLink.g.cs index cca08da..532543e 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicStreamingGetLink.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicStreamingGetLink.g.cs @@ -390,13 +390,13 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -407,7 +407,7 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -427,13 +427,13 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -444,7 +444,7 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -487,7 +487,7 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -532,7 +532,7 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsBuy.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsBuy.g.cs index 80df926..948b24f 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsBuy.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsBuy.g.cs @@ -359,7 +359,7 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_302 is { Length: > 0 } ? __content_302 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, responseBody: __content_302, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -378,13 +378,13 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -428,7 +428,7 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -470,7 +470,7 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -515,7 +515,7 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsCancel.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsCancel.g.cs index 6883d61..4e78e01 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsCancel.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsCancel.g.cs @@ -354,7 +354,7 @@ await GetPublicSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -386,7 +386,7 @@ await GetPublicSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -421,7 +421,7 @@ await GetPublicSubscriptionsCancelAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -457,7 +457,7 @@ await GetPublicSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracks.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracks.g.cs index daf9ff7..b6de7ac 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracks.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracks.g.cs @@ -386,13 +386,13 @@ partial void ProcessGetPublicTracksResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessGetPublicTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -423,13 +423,13 @@ partial void ProcessGetPublicTracksResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessGetPublicTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -473,7 +473,7 @@ partial void ProcessGetPublicTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -515,7 +515,7 @@ partial void ProcessGetPublicTracksResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -560,7 +560,7 @@ partial void ProcessGetPublicTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksByTrack.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksByTrack.g.cs index e79f311..e738a5b 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksByTrack.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksByTrack.g.cs @@ -341,13 +341,13 @@ partial void ProcessGetPublicTracksByTrackResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ partial void ProcessGetPublicTracksByTrackResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -378,13 +378,13 @@ partial void ProcessGetPublicTracksByTrackResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessGetPublicTracksByTrackResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -415,13 +415,13 @@ partial void ProcessGetPublicTracksByTrackResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -432,7 +432,7 @@ partial void ProcessGetPublicTracksByTrackResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -465,7 +465,7 @@ partial void ProcessGetPublicTracksByTrackResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -507,7 +507,7 @@ partial void ProcessGetPublicTracksByTrackResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -552,7 +552,7 @@ partial void ProcessGetPublicTracksByTrackResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksSessionBySessionId.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksSessionBySessionId.g.cs index c94a82b..5f09806 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksSessionBySessionId.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksSessionBySessionId.g.cs @@ -350,13 +350,13 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -367,7 +367,7 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -387,13 +387,13 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -404,7 +404,7 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -424,13 +424,13 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -441,7 +441,7 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -474,7 +474,7 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -516,7 +516,7 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -561,7 +561,7 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingRestart.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingRestart.g.cs index be848a2..30b3e72 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingRestart.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingRestart.g.cs @@ -341,13 +341,13 @@ await PostPublicStreamingRestartAsResponseAsync( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ await PostPublicStreamingRestartAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -378,13 +378,13 @@ await PostPublicStreamingRestartAsResponseAsync( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ await PostPublicStreamingRestartAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -431,7 +431,7 @@ await PostPublicStreamingRestartAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -467,7 +467,7 @@ await PostPublicStreamingRestartAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetIntensity.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetIntensity.g.cs index 0a4a01d..a1058ea 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetIntensity.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetIntensity.g.cs @@ -341,13 +341,13 @@ await PostPublicStreamingSetIntensityAsResponseAsync( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ await PostPublicStreamingSetIntensityAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -378,13 +378,13 @@ await PostPublicStreamingSetIntensityAsResponseAsync( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ await PostPublicStreamingSetIntensityAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -431,7 +431,7 @@ await PostPublicStreamingSetIntensityAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -467,7 +467,7 @@ await PostPublicStreamingSetIntensityAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetLoopState.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetLoopState.g.cs index 6e5252d..57c245e 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetLoopState.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetLoopState.g.cs @@ -341,13 +341,13 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -378,13 +378,13 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -431,7 +431,7 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -467,7 +467,7 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStripeWebhook.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStripeWebhook.g.cs index 2c2f781..bfcc970 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStripeWebhook.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStripeWebhook.g.cs @@ -319,13 +319,13 @@ await PostPublicStripeWebhookAsResponseAsync( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Mubert.PostPublicStripeWebhookResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Mubert.PostPublicStripeWebhookResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Mubert.PostPublicStripeWebhookResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Mubert.PostPublicStripeWebhookResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -336,7 +336,7 @@ await PostPublicStripeWebhookAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -372,7 +372,7 @@ await PostPublicStripeWebhookAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -408,7 +408,7 @@ await PostPublicStripeWebhookAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsBuy.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsBuy.g.cs index e7be2ab..f5bf1bc 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsBuy.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsBuy.g.cs @@ -359,7 +359,7 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_302 is { Length: > 0 } ? __content_302 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, responseBody: __content_302, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -378,13 +378,13 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -428,7 +428,7 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -470,7 +470,7 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -515,7 +515,7 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsCancel.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsCancel.g.cs index e6f0c72..c4294e9 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsCancel.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsCancel.g.cs @@ -354,7 +354,7 @@ await PostPublicSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -386,7 +386,7 @@ await PostPublicSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -421,7 +421,7 @@ await PostPublicSubscriptionsCancelAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -457,7 +457,7 @@ await PostPublicSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracks.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracks.g.cs index 5890864..0ea9ff2 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracks.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracks.g.cs @@ -348,13 +348,13 @@ partial void ProcessPostPublicTracksResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -365,7 +365,7 @@ partial void ProcessPostPublicTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -385,13 +385,13 @@ partial void ProcessPostPublicTracksResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessPostPublicTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -435,7 +435,7 @@ partial void ProcessPostPublicTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -477,7 +477,7 @@ partial void ProcessPostPublicTracksResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -522,7 +522,7 @@ partial void ProcessPostPublicTracksResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackEdit.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackEdit.g.cs index 75bda63..d8053b3 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackEdit.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackEdit.g.cs @@ -361,13 +361,13 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -435,13 +435,13 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -452,7 +452,7 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -485,7 +485,7 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -527,7 +527,7 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -572,7 +572,7 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackSimilar.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackSimilar.g.cs index 29353ee..ebc8a18 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackSimilar.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackSimilar.g.cs @@ -361,13 +361,13 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -435,13 +435,13 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -452,7 +452,7 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -485,7 +485,7 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -527,7 +527,7 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -572,7 +572,7 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksRecord.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksRecord.g.cs index a3542b3..6356173 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksRecord.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksRecord.g.cs @@ -348,13 +348,13 @@ partial void ProcessPostPublicTracksRecordResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -365,7 +365,7 @@ partial void ProcessPostPublicTracksRecordResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -385,13 +385,13 @@ partial void ProcessPostPublicTracksRecordResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessPostPublicTracksRecordResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -435,7 +435,7 @@ partial void ProcessPostPublicTracksRecordResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -477,7 +477,7 @@ partial void ProcessPostPublicTracksRecordResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -522,7 +522,7 @@ partial void ProcessPostPublicTracksRecordResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksStored.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksStored.g.cs index 88530f6..461f491 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksStored.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksStored.g.cs @@ -348,13 +348,13 @@ partial void ProcessPostPublicTracksStoredResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -365,7 +365,7 @@ partial void ProcessPostPublicTracksStoredResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -385,13 +385,13 @@ partial void ProcessPostPublicTracksStoredResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessPostPublicTracksStoredResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -422,13 +422,13 @@ partial void ProcessPostPublicTracksStoredResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessPostPublicTracksStoredResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -472,7 +472,7 @@ partial void ProcessPostPublicTracksStoredResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -514,7 +514,7 @@ partial void ProcessPostPublicTracksStoredResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -559,7 +559,7 @@ partial void ProcessPostPublicTracksStoredResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.DeleteServiceCustomersByCustomer.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.DeleteServiceCustomersByCustomer.g.cs index 4a37981..93cfd6a 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.DeleteServiceCustomersByCustomer.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.DeleteServiceCustomersByCustomer.g.cs @@ -354,13 +354,13 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -391,13 +391,13 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -428,13 +428,13 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -478,7 +478,7 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -513,7 +513,7 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -549,7 +549,7 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomers.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomers.g.cs index 2d6a862..1599f62 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomers.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomers.g.cs @@ -358,13 +358,13 @@ partial void ProcessGetServiceCustomersResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessGetServiceCustomersResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessGetServiceCustomersResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessGetServiceCustomersResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -445,7 +445,7 @@ partial void ProcessGetServiceCustomersResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -487,7 +487,7 @@ partial void ProcessGetServiceCustomersResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -532,7 +532,7 @@ partial void ProcessGetServiceCustomersResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersByCustomer.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersByCustomer.g.cs index 4a79b49..9eb97c0 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersByCustomer.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersByCustomer.g.cs @@ -341,13 +341,13 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -378,13 +378,13 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -415,13 +415,13 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -432,7 +432,7 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -465,7 +465,7 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -507,7 +507,7 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -552,7 +552,7 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersCustomIdByCustomid.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersCustomIdByCustomid.g.cs index 7ee24b8..d38a542 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersCustomIdByCustomid.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersCustomIdByCustomid.g.cs @@ -341,13 +341,13 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -378,13 +378,13 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -415,13 +415,13 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -432,7 +432,7 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -465,7 +465,7 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -507,7 +507,7 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -552,7 +552,7 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicenses.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicenses.g.cs index 442753b..967f8bf 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicenses.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicenses.g.cs @@ -358,13 +358,13 @@ partial void ProcessGetServiceLicensesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessGetServiceLicensesResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessGetServiceLicensesResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessGetServiceLicensesResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -445,7 +445,7 @@ partial void ProcessGetServiceLicensesResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -487,7 +487,7 @@ partial void ProcessGetServiceLicensesResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -532,7 +532,7 @@ partial void ProcessGetServiceLicensesResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicensesByLicense.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicensesByLicense.g.cs index d5e2c87..7484155 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicensesByLicense.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicensesByLicense.g.cs @@ -341,13 +341,13 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -378,13 +378,13 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -415,13 +415,13 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -432,7 +432,7 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -465,7 +465,7 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -507,7 +507,7 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -552,7 +552,7 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PostServiceCustomers.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PostServiceCustomers.g.cs index d02e5eb..72597e6 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PostServiceCustomers.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PostServiceCustomers.g.cs @@ -348,13 +348,13 @@ partial void ProcessPostServiceCustomersResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -365,7 +365,7 @@ partial void ProcessPostServiceCustomersResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -385,13 +385,13 @@ partial void ProcessPostServiceCustomersResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessPostServiceCustomersResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -435,7 +435,7 @@ partial void ProcessPostServiceCustomersResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -477,7 +477,7 @@ partial void ProcessPostServiceCustomersResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -522,7 +522,7 @@ partial void ProcessPostServiceCustomersResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceCustomersByCustomer.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceCustomersByCustomer.g.cs index 3b95cb0..ea72fb7 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceCustomersByCustomer.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceCustomersByCustomer.g.cs @@ -361,13 +361,13 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -435,13 +435,13 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.Error404Response.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -452,7 +452,7 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -485,7 +485,7 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -527,7 +527,7 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -572,7 +572,7 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceLicensesByLicense.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceLicensesByLicense.g.cs index 7043d1b..405cb30 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceLicensesByLicense.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceLicensesByLicense.g.cs @@ -374,7 +374,7 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -393,13 +393,13 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Mubert.UnauthenticatedException.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -430,13 +430,13 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Mubert.Error403Response.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -490,7 +490,7 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -535,7 +535,7 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeBillingPortal.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeBillingPortal.g.cs index b5f408f..f321ad4 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeBillingPortal.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeBillingPortal.g.cs @@ -361,7 +361,7 @@ partial void ProcessGetServiceStripeBillingPortalResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -393,7 +393,7 @@ partial void ProcessGetServiceStripeBillingPortalResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -435,7 +435,7 @@ partial void ProcessGetServiceStripeBillingPortalResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -480,7 +480,7 @@ partial void ProcessGetServiceStripeBillingPortalResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsBuy.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsBuy.g.cs index 39384da..4a92215 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsBuy.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsBuy.g.cs @@ -359,7 +359,7 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_302 is { Length: > 0 } ? __content_302 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, responseBody: __content_302, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -378,13 +378,13 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -428,7 +428,7 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -470,7 +470,7 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -515,7 +515,7 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsCancel.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsCancel.g.cs index b018494..a999582 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsCancel.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsCancel.g.cs @@ -354,7 +354,7 @@ await GetServiceStripeSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -386,7 +386,7 @@ await GetServiceStripeSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -421,7 +421,7 @@ await GetServiceStripeSubscriptionsCancelAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -457,7 +457,7 @@ await GetServiceStripeSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeBillingPortal.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeBillingPortal.g.cs index 2f24125..add3ad5 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeBillingPortal.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeBillingPortal.g.cs @@ -354,7 +354,7 @@ await PostServiceStripeBillingPortalAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -386,7 +386,7 @@ await PostServiceStripeBillingPortalAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -421,7 +421,7 @@ await PostServiceStripeBillingPortalAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -457,7 +457,7 @@ await PostServiceStripeBillingPortalAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsBuy.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsBuy.g.cs index bc765af..ab96932 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsBuy.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsBuy.g.cs @@ -359,7 +359,7 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_302 is { Length: > 0 } ? __content_302 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, responseBody: __content_302, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -378,13 +378,13 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Mubert.PriceNotFoundException.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -428,7 +428,7 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -470,7 +470,7 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -515,7 +515,7 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsCancel.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsCancel.g.cs index 37cef63..69f1217 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsCancel.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsCancel.g.cs @@ -354,7 +354,7 @@ await PostServiceStripeSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -386,7 +386,7 @@ await PostServiceStripeSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -421,7 +421,7 @@ await PostServiceStripeSubscriptionsCancelAsResponseAsync( { throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -457,7 +457,7 @@ await PostServiceStripeSubscriptionsCancelAsResponseAsync( throw global::Mubert.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary(